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