mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-26 09:19:04 -05:00
Remove error baseline
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
tests/cases/compiler/es2018ObjectAssign.ts(3,7): error TS1155: 'const' declarations must be initialized.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es2018ObjectAssign.ts (1 errors) ====
|
||||
const test = Object.assign({}, { test: true });
|
||||
|
||||
const p: Promise<number>;
|
||||
~
|
||||
!!! error TS1155: 'const' declarations must be initialized.
|
||||
p.finally();
|
||||
@@ -1,10 +1,9 @@
|
||||
//// [es2018ObjectAssign.ts]
|
||||
const test = Object.assign({}, { test: true });
|
||||
|
||||
const p: Promise<number>;
|
||||
declare const p: Promise<number>;
|
||||
p.finally();
|
||||
|
||||
//// [es2018ObjectAssign.js]
|
||||
const test = Object.assign({}, { test: true });
|
||||
const p;
|
||||
p.finally();
|
||||
|
||||
@@ -6,12 +6,12 @@ const test = Object.assign({}, { test: true });
|
||||
>assign : Symbol(ObjectConstructor.assign, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --))
|
||||
>test : Symbol(test, Decl(es2018ObjectAssign.ts, 0, 32))
|
||||
|
||||
const p: Promise<number>;
|
||||
>p : Symbol(p, Decl(es2018ObjectAssign.ts, 2, 5))
|
||||
declare const p: Promise<number>;
|
||||
>p : Symbol(p, Decl(es2018ObjectAssign.ts, 2, 13))
|
||||
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
p.finally();
|
||||
>p.finally : Symbol(Promise.finally, Decl(lib.es2018.promise.d.ts, --, --))
|
||||
>p : Symbol(p, Decl(es2018ObjectAssign.ts, 2, 5))
|
||||
>p : Symbol(p, Decl(es2018ObjectAssign.ts, 2, 13))
|
||||
>finally : Symbol(Promise.finally, Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ const test = Object.assign({}, { test: true });
|
||||
>test : true
|
||||
>true : true
|
||||
|
||||
const p: Promise<number>;
|
||||
declare const p: Promise<number>;
|
||||
>p : Promise<number>
|
||||
>Promise : Promise<T>
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
const test = Object.assign({}, { test: true });
|
||||
|
||||
const p: Promise<number>;
|
||||
declare const p: Promise<number>;
|
||||
p.finally();
|
||||
Reference in New Issue
Block a user