7 lines
No EOL
248 B
Text
7 lines
No EOL
248 B
Text
==== 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; |