Remove error baseline

This commit is contained in:
Mohamed Hegazy
2018-06-11 15:29:52 -07:00
parent b33d5e3f19
commit c34a6d9d12
5 changed files with 6 additions and 17 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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, --, --))

View File

@@ -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>

View File

@@ -2,5 +2,5 @@
const test = Object.assign({}, { test: true });
const p: Promise<number>;
declare const p: Promise<number>;
p.finally();