18 lines
241 B
TypeScript
18 lines
241 B
TypeScript
|
|
var obj1: {};
|
|
|
|
obj1.length;
|
|
|
|
|
|
|
|
var obj2: Object;
|
|
|
|
obj2.length;
|
|
|
|
|
|
|
|
function concat<T>(x: T, y: T): T { return null; }
|
|
|
|
var result = concat(1, "");
|
|
|
|
var elementCount = result.length; // would like to get an error by now
|