Add symbols for just-added test

This commit is contained in:
Nathan Shively-Sanders 2018-02-15 10:47:04 -08:00
parent 8f98c77217
commit 8bfcf331d5
2 changed files with 17 additions and 13 deletions

View File

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

View File

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