TypeScript/tests/cases/compiler/genericPrototypeProperty.ts
2014-07-12 17:30:19 -07:00

9 lines
140 B
TypeScript

class C<T> {
x: T;
foo(x: T): T { return null; }
}
var r = C.prototype;
// should be any
var r2 = r.x
var r3 = r.foo(null);