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

9 lines
204 B
TypeScript

class arrTest {
test(arg1: number[]) { }
callTest() {
// these two should give the same error
this.test([1, 2, "hi", 5, ]);
this.test([1, 2, "hi", 5]);
}
}