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

18 lines
531 B
Plaintext
Raw Normal View History

tests/cases/compiler/genericCallsWithoutParens.ts(2,18): error TS1005: '(' expected.
tests/cases/compiler/genericCallsWithoutParens.ts(7,22): error TS1005: '(' expected.
==== tests/cases/compiler/genericCallsWithoutParens.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
function f<T>() { }
var r = f<number>; // parse error
~
!!! error TS1005: '(' expected.
2014-07-13 01:04:16 +02:00
class C<T> {
foo: T;
}
var c = new C<number>; // parse error
~
!!! error TS1005: '(' expected.
2014-07-13 01:04:16 +02:00