TypeScript/tests/cases/compiler/newArrays.ts

12 lines
165 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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);
}
}
}