10 lines
No EOL
377 B
Text
10 lines
No EOL
377 B
Text
tests/cases/compiler/prototypes.ts(2,14): error TS2339: Property 'prototype' does not exist on type 'Object'.
|
|
|
|
|
|
==== 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; |