TypeScript/tests/baselines/reference/prototypes.js

12 lines
224 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [prototypes.ts]
Object.prototype; // ok
new Object().prototype; // error
function f() {}
f.prototype;
//// [prototypes.js]
Object.prototype; // ok
new Object().prototype; // error
function f() { }
2014-07-13 01:04:16 +02:00
f.prototype;