14 lines
625 B
Text
14 lines
625 B
Text
=== tests/cases/compiler/indexer3.ts ===
|
|
var dateMap: { [x: string]: Date; } = {}
|
|
>dateMap : { [x: string]: Date; }, Symbol(dateMap,Decl(indexer3.ts,0,3))
|
|
>x : string, Symbol(x,Decl(indexer3.ts,0,16))
|
|
>Date : Date, Symbol(Date,Decl(lib.d.ts,633,23),Decl(lib.d.ts,815,11))
|
|
>{} : { [x: string]: undefined; }
|
|
|
|
var r: Date = dateMap["hello"] // result type includes indexer using BCT
|
|
>r : Date, Symbol(r,Decl(indexer3.ts,1,3))
|
|
>Date : Date, Symbol(Date,Decl(lib.d.ts,633,23),Decl(lib.d.ts,815,11))
|
|
>dateMap["hello"] : Date
|
|
>dateMap : { [x: string]: Date; }, Symbol(dateMap,Decl(indexer3.ts,0,3))
|
|
>"hello" : string
|
|
|