13 lines
406 B
TypeScript
13 lines
406 B
TypeScript
//// [objectTypesWithPredefinedTypesAsName2.ts]
|
|
// it is an error to use a predefined type as a type name
|
|
|
|
class void {} // parse error unlike the others
|
|
|
|
//// [objectTypesWithPredefinedTypesAsName2.js]
|
|
// it is an error to use a predefined type as a type name
|
|
var default_1 = (function () {
|
|
function default_1() {
|
|
}
|
|
return default_1;
|
|
})();
|
|
void {}; // parse error unlike the others
|