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

16 lines
504 B
Plaintext

==== tests/cases/compiler/ambiguousGenericAssertion1.ts (5 errors) ====
function f<T>(x: T): T { return null; }
var r = <T>(x: T) => x;
var r2 = < <T>(x: T) => T>f; // valid
var r3 = <<T>(x: T) => T>f; // ambiguous, appears to the parser as a << operation
~~
!!! Expression expected.
~
!!! ')' expected.
~
!!! ',' expected.
~~
!!! ';' expected.
~
!!! Cannot find name 'x'.