TypeScript/tests/baselines/reference/prototypeInstantiatedWithBaseConstraint.js
2014-08-15 15:49:09 -07:00

15 lines
335 B
TypeScript

//// [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;
})();
C.prototype.x.boo; // No error, prototype is instantiated to any