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

11 lines
202 B
TypeScript

function doThing(x: { n: string }) { }
class A {
static n: string;
p = doThing(A); // OK
}
class B extends A {
p1 = doThing(A); // OK
p2 = doThing(B); // OK
}
doThing(B); //OK