11 lines
224 B
TypeScript
11 lines
224 B
TypeScript
//// [prototypes.ts]
|
|
Object.prototype; // ok
|
|
new Object().prototype; // error
|
|
function f() {}
|
|
f.prototype;
|
|
|
|
//// [prototypes.js]
|
|
Object.prototype; // ok
|
|
new Object().prototype; // error
|
|
function f() { }
|
|
f.prototype;
|