38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
=== tests/cases/compiler/newArrays.ts ===
|
|
module M {
|
|
>M : Symbol(M, Decl(newArrays.ts, 0, 0))
|
|
|
|
class Foo {}
|
|
>Foo : Symbol(Foo, Decl(newArrays.ts, 0, 10))
|
|
|
|
class Gar {
|
|
>Gar : Symbol(Gar, Decl(newArrays.ts, 1, 13))
|
|
|
|
public fa: Foo[];
|
|
>fa : Symbol(fa, Decl(newArrays.ts, 2, 12))
|
|
>Foo : Symbol(Foo, Decl(newArrays.ts, 0, 10))
|
|
|
|
public x = 10;
|
|
>x : Symbol(x, Decl(newArrays.ts, 3, 19))
|
|
|
|
public y = 10;
|
|
>y : Symbol(y, Decl(newArrays.ts, 4, 16))
|
|
|
|
public m () {
|
|
>m : Symbol(m, Decl(newArrays.ts, 5, 16))
|
|
|
|
this.fa = new Array<Foo>(this.x * this.y);
|
|
>this.fa : Symbol(fa, Decl(newArrays.ts, 2, 12))
|
|
>this : Symbol(Gar, Decl(newArrays.ts, 1, 13))
|
|
>fa : Symbol(fa, Decl(newArrays.ts, 2, 12))
|
|
>Array : Symbol(Array, Decl(lib.d.ts, 1000, 23), Decl(lib.d.ts, 1171, 11))
|
|
>Foo : Symbol(Foo, Decl(newArrays.ts, 0, 10))
|
|
>this.x : Symbol(x, Decl(newArrays.ts, 3, 19))
|
|
>this : Symbol(Gar, Decl(newArrays.ts, 1, 13))
|
|
>x : Symbol(x, Decl(newArrays.ts, 3, 19))
|
|
>this.y : Symbol(y, Decl(newArrays.ts, 4, 16))
|
|
>this : Symbol(Gar, Decl(newArrays.ts, 1, 13))
|
|
>y : Symbol(y, Decl(newArrays.ts, 4, 16))
|
|
}
|
|
}
|
|
}
|