TypeScript/tests/baselines/reference/genericConstructInvocationWithNoTypeArg.errors.txt

8 lines
257 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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'.