TypeScript/tests/cases/compiler/newArrays.ts
2014-07-12 17:30:19 -07:00

12 lines
165 B
TypeScript

module M {
class Foo {}
class Gar {
public fa: Foo[];
public x = 10;
public y = 10;
public m () {
this.fa = new Array<Foo>(this.x * this.y);
}
}
}