41 lines
896 B
Text
41 lines
896 B
Text
=== 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
|
|
|
|
public y = 10;
|
|
>y : number
|
|
|
|
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 : Gar
|
|
>fa : Foo[]
|
|
>new Array<Foo>(this.x * this.y) : Foo[]
|
|
>Array : { (arrayLength?: number): Array<any>; <T>(arrayLength: number): Array<T>; <T>(...items: Array<T>): Array<T>; new (arrayLength?: number): Array<any>; new <T>(arrayLength: number): Array<T>; new <T>(...items: Array<T>): Array<T>; isArray(arg: any): boolean; prototype: Array<any>; }
|
|
>Foo : Foo
|
|
>this.x * this.y : number
|
|
>this.x : number
|
|
>this : Gar
|
|
>x : number
|
|
>this.y : number
|
|
>this : Gar
|
|
>y : number
|
|
}
|
|
}
|
|
}
|