TypeScript/tests/baselines/reference/prototypes.errors.txt
2014-07-12 17:30:19 -07:00

7 lines
248 B
Plaintext

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