2014-07-13 01:04:16 +02:00
|
|
|
//// [prototypes.ts]
|
|
|
|
Object.prototype; // ok
|
|
|
|
new Object().prototype; // error
|
|
|
|
function f() {}
|
|
|
|
f.prototype;
|
|
|
|
|
|
|
|
//// [prototypes.js]
|
2014-08-16 00:49:09 +02:00
|
|
|
Object.prototype; // ok
|
|
|
|
new Object().prototype; // error
|
2015-03-26 21:46:35 +01:00
|
|
|
function f() { }
|
2014-07-13 01:04:16 +02:00
|
|
|
f.prototype;
|