mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 15:44:16 -06:00
Add symbols for just-added test
This commit is contained in:
parent
8f98c77217
commit
8bfcf331d5
@ -2,12 +2,16 @@
|
||||
// this is a javascript file...
|
||||
|
||||
export const Adapter = {};
|
||||
>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 4, 18))
|
||||
>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 2, 26), Decl(a.js, 4, 18))
|
||||
|
||||
Adapter.prop = {};
|
||||
>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 4, 18))
|
||||
>Adapter.prop : Symbol(prop, Decl(a.js, 2, 26))
|
||||
>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 2, 26), Decl(a.js, 4, 18))
|
||||
>prop : Symbol(prop, Decl(a.js, 2, 26))
|
||||
|
||||
// comment this out, and it works
|
||||
Adapter.asyncMethod = function() {}
|
||||
>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 4, 18))
|
||||
>Adapter.asyncMethod : Symbol(asyncMethod, Decl(a.js, 4, 18))
|
||||
>Adapter : Symbol(Adapter, Decl(a.js, 2, 12), Decl(a.js, 2, 26), Decl(a.js, 4, 18))
|
||||
>asyncMethod : Symbol(asyncMethod, Decl(a.js, 4, 18))
|
||||
|
||||
|
||||
@ -2,21 +2,21 @@
|
||||
// this is a javascript file...
|
||||
|
||||
export const Adapter = {};
|
||||
>Adapter : { [x: string]: any; }
|
||||
>{} : { [x: string]: any; }
|
||||
>Adapter : { [x: string]: any; prop: { [x: string]: any; }; asyncMethod: () => void; }
|
||||
>{} : { [x: string]: any; prop: { [x: string]: any; }; asyncMethod: () => void; }
|
||||
|
||||
Adapter.prop = {};
|
||||
>Adapter.prop = {} : {}
|
||||
>Adapter.prop : any
|
||||
>Adapter : { [x: string]: any; }
|
||||
>prop : any
|
||||
>{} : {}
|
||||
>Adapter.prop = {} : { [x: string]: any; }
|
||||
>Adapter.prop : { [x: string]: any; }
|
||||
>Adapter : { [x: string]: any; prop: { [x: string]: any; }; asyncMethod: () => void; }
|
||||
>prop : { [x: string]: any; }
|
||||
>{} : { [x: string]: any; }
|
||||
|
||||
// comment this out, and it works
|
||||
Adapter.asyncMethod = function() {}
|
||||
>Adapter.asyncMethod = function() {} : () => void
|
||||
>Adapter.asyncMethod : any
|
||||
>Adapter : { [x: string]: any; }
|
||||
>asyncMethod : any
|
||||
>Adapter.asyncMethod : () => void
|
||||
>Adapter : { [x: string]: any; prop: { [x: string]: any; }; asyncMethod: () => void; }
|
||||
>asyncMethod : () => void
|
||||
>function() {} : () => void
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user