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
|
=== tests/cases/compiler/newArrays.ts ===
module M {
>M : typeof M
class Foo {}
>Foo : Foo
class Gar {
>Gar : Gar
public fa: Foo[];
>fa : Foo[]
>Foo : Foo
public x = 10;
>x : number
>10 : 10
public y = 10;
>y : number
>10 : 10
public m () {
>m : () => void
this.fa = new Array<Foo>(this.x * this.y);
>this.fa = new Array<Foo>(this.x * this.y) : Foo[]
>this.fa : Foo[]
>this : this
>fa : Foo[]
>new Array<Foo>(this.x * this.y) : Foo[]
>Array : ArrayConstructor
>Foo : Foo
>this.x * this.y : number
>this.x : number
>this : this
>x : number
>this.y : number
>this : this
>y : number
}
}
}
|