16 lines
260 B
TypeScript
16 lines
260 B
TypeScript
// Repro from #16985
|
|
|
|
interface MyInterface {
|
|
something: number;
|
|
}
|
|
|
|
class MyClass<T extends MyInterface> {
|
|
doIt(data : Partial<T>) {}
|
|
}
|
|
|
|
class MySubClass extends MyClass<MyInterface> {}
|
|
|
|
function fn(arg: typeof MyClass) {};
|
|
|
|
fn(MySubClass);
|