mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
546 B
Plaintext
13 lines
546 B
Plaintext
//// [tests/cases/compiler/contextualTyping20.ts] ////
|
|
|
|
=== contextualTyping20.ts ===
|
|
var foo:{id:number;}[] = [{id:1}]; foo = [{id:1}, {id:2, name:"foo"}];
|
|
>foo : Symbol(foo, Decl(contextualTyping20.ts, 0, 3))
|
|
>id : Symbol(id, Decl(contextualTyping20.ts, 0, 9))
|
|
>id : Symbol(id, Decl(contextualTyping20.ts, 0, 27))
|
|
>foo : Symbol(foo, Decl(contextualTyping20.ts, 0, 3))
|
|
>id : Symbol(id, Decl(contextualTyping20.ts, 0, 43))
|
|
>id : Symbol(id, Decl(contextualTyping20.ts, 0, 51))
|
|
>name : Symbol(name, Decl(contextualTyping20.ts, 0, 56))
|
|
|