mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
499 B
Plaintext
12 lines
499 B
Plaintext
//// [tests/cases/compiler/contextualTyping12.ts] ////
|
|
|
|
=== contextualTyping12.ts ===
|
|
class foo { public bar:{id:number;}[] = [{id:1}, {id:2, name:"foo"}]; }
|
|
>foo : Symbol(foo, Decl(contextualTyping12.ts, 0, 0))
|
|
>bar : Symbol(foo.bar, Decl(contextualTyping12.ts, 0, 11))
|
|
>id : Symbol(id, Decl(contextualTyping12.ts, 0, 24))
|
|
>id : Symbol(id, Decl(contextualTyping12.ts, 0, 42))
|
|
>id : Symbol(id, Decl(contextualTyping12.ts, 0, 50))
|
|
>name : Symbol(name, Decl(contextualTyping12.ts, 0, 55))
|
|
|