2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/moduleVariableArrayIndexer.ts ===
|
|
|
|
module Bar {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Bar : typeof Bar
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var a = 1;
|
2015-04-16 01:44:20 +02:00
|
|
|
>a : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var t = undefined[a][a]; // CG: var t = undefined[Bar.a][a];
|
2015-04-16 01:44:20 +02:00
|
|
|
>t : any
|
2014-08-15 23:33:16 +02:00
|
|
|
>undefined[a][a] : any
|
|
|
|
>undefined[a] : any
|
2015-04-16 01:44:20 +02:00
|
|
|
>undefined : undefined
|
|
|
|
>a : number
|
|
|
|
>a : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|