11 lines
202 B
TypeScript
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
|