7 lines
248 B
Plaintext
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;
|