14 lines
339 B
Text
14 lines
339 B
Text
=== tests/cases/compiler/indexer3.ts ===
|
|
var dateMap: { [x: string]: Date; } = {}
|
|
>dateMap : { [x: string]: Date; }
|
|
>x : string
|
|
>Date : Date
|
|
>{} : {}
|
|
|
|
var r: Date = dateMap["hello"] // result type includes indexer using BCT
|
|
>r : Date
|
|
>Date : Date
|
|
>dateMap["hello"] : Date
|
|
>dateMap : { [x: string]: Date; }
|
|
>"hello" : string
|
|
|