TypeScript/tests/cases/compiler/prototypes.ts
2014-07-12 17:30:19 -07:00

4 lines
88 B
TypeScript

Object.prototype; // ok
new Object().prototype; // error
function f() {}
f.prototype;