TypeScript/tests/baselines/reference/prototypes.errors.txt

10 lines
377 B
Plaintext
Raw Normal View History

tests/cases/compiler/prototypes.ts(2,14): error TS2339: Property 'prototype' does not exist on type 'Object'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/prototypes.ts (1 errors) ====
Object.prototype; // ok
new Object().prototype; // error
~~~~~~~~~
!!! error TS2339: Property 'prototype' does not exist on type 'Object'.
2014-07-13 01:04:16 +02:00
function f() {}
f.prototype;