mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
1.2 KiB
Plaintext
20 lines
1.2 KiB
Plaintext
//// [tests/cases/compiler/es2018ObjectAssign.ts] ////
|
|
|
|
=== es2018ObjectAssign.ts ===
|
|
const test = Object.assign({}, { test: true });
|
|
>test : Symbol(test, Decl(es2018ObjectAssign.ts, 0, 5))
|
|
>Object.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, --, --))
|
|
>Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
>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))
|
|
|
|
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, 13))
|
|
>finally : Symbol(Promise.finally, Decl(lib.es2018.promise.d.ts, --, --))
|
|
|