mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
609 B
Plaintext
20 lines
609 B
Plaintext
grammarAmbiguities.ts(8,10): error TS2554: Expected 1 arguments, but got 2.
|
|
grammarAmbiguities.ts(9,10): error TS2554: Expected 1 arguments, but got 2.
|
|
|
|
|
|
==== grammarAmbiguities.ts (2 errors) ====
|
|
function f(n: any) { return null; }
|
|
function g<A, B>(x: any) { return null; }
|
|
interface A { }
|
|
interface B { }
|
|
var A, B;
|
|
|
|
f(g<A, B>(7));
|
|
f(g < A, B > 7); // Should error
|
|
~~~~~
|
|
!!! error TS2554: Expected 1 arguments, but got 2.
|
|
f(g < A, B > +(7)); // Should error
|
|
~~~~~~~~
|
|
!!! error TS2554: Expected 1 arguments, but got 2.
|
|
|
|
|