2014-07-13 01:04:16 +02:00
|
|
|
//// [prototypeInstantiatedWithBaseConstraint.ts]
|
|
|
|
class C<T> {
|
|
|
|
x: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
C.prototype.x.boo; // No error, prototype is instantiated to any
|
|
|
|
|
|
|
|
//// [prototypeInstantiatedWithBaseConstraint.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
return C;
|
|
|
|
})();
|
2014-08-16 00:49:09 +02:00
|
|
|
C.prototype.x.boo; // No error, prototype is instantiated to any
|