1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
=== tests/cases/compiler/moduleVariables.ts ===
declare var console: any;
>console : any
var x = 1;
>x : number
>1 : 1
module M {
>M : typeof M
export var x = 2;
>x : number
>2 : 2
console.log(x); // 2
>console.log(x) : any
>console.log : any
>console : any
>log : any
>x : number
}
module M {
>M : typeof M
console.log(x); // 2
>console.log(x) : any
>console.log : any
>console : any
>log : any
>x : number
}
module M {
>M : typeof M
var x = 3;
>x : number
>3 : 3
console.log(x); // 3
>console.log(x) : any
>console.log : any
>console : any
>log : any
>x : number
}
|