TypeScript/tests/baselines/reference/prototypes.errors.txt
2014-09-11 16:11:08 -07:00

7 lines
262 B
Plaintext

==== tests/cases/compiler/prototypes.ts (1 errors) ====
Object.prototype; // ok
new Object().prototype; // error
~~~~~~~~~
!!! error TS2339: Property 'prototype' does not exist on type 'Object'.
function f() {}
f.prototype;