6 lines
95 B
TypeScript
6 lines
95 B
TypeScript
|
class Foo{};
|
||
|
|
||
|
function bar(x: {new(): Foo;}){}
|
||
|
|
||
|
bar(Foo); // Error, but should be allowed
|