TypeScript/tests/baselines/reference/genericConstructInvocationWithNoTypeArg.errors.txt
2014-07-12 17:30:19 -07:00

8 lines
257 B
Plaintext

==== tests/cases/compiler/genericConstructInvocationWithNoTypeArg.ts (1 errors) ====
interface Foo<T> {
new (x: number): Foo<T>;
}
var f2: Foo<number> = new Foo(3);
~~~
!!! Cannot find name 'Foo'.