=== tests/cases/compiler/assignmentCompatOnNew.ts === class Foo{}; >Foo : Foo function bar(x: {new(): Foo;}){} >bar : (x: new () => Foo) => void >x : new () => Foo >Foo : Foo bar(Foo); // Error, but should be allowed >bar(Foo) : void >bar : (x: new () => Foo) => void >Foo : typeof Foo