//// [defaultBestCommonTypesHaveDecls.ts] var obj1: {}; obj1.length; var obj2: Object; obj2.length; function concat(x: T, y: T): T { return null; } var result = concat(1, ""); var elementCount = result.length; // would like to get an error by now //// [defaultBestCommonTypesHaveDecls.js] var obj1; obj1.length; var obj2; obj2.length; function concat(x, y) { return null; } var result = concat(1, ""); var elementCount = result.length; // would like to get an error by now