TypeScript/tests/cases/compiler/staticInheritance.ts

11 lines
202 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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