f1a2e41a8a
This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
24 lines
1,009 B
Plaintext
24 lines
1,009 B
Plaintext
tests/cases/compiler/trailingSeparatorInFunctionCall.ts(4,1): error TS2346: Supplied parameters do not match any signature of call target.
|
|
tests/cases/compiler/trailingSeparatorInFunctionCall.ts(4,7): error TS1009: Trailing comma not allowed.
|
|
tests/cases/compiler/trailingSeparatorInFunctionCall.ts(9,1): error TS2346: Supplied parameters do not match any signature of call target.
|
|
tests/cases/compiler/trailingSeparatorInFunctionCall.ts(9,8): error TS1009: Trailing comma not allowed.
|
|
|
|
|
|
==== tests/cases/compiler/trailingSeparatorInFunctionCall.ts (4 errors) ====
|
|
function f(x, y) {
|
|
}
|
|
|
|
f(1, 2, );
|
|
~~~~~~~~~
|
|
!!! error TS2346: Supplied parameters do not match any signature of call target.
|
|
~
|
|
!!! error TS1009: Trailing comma not allowed.
|
|
|
|
function f2<T>(x: T, y: T) {
|
|
}
|
|
|
|
f2(1, 2, );
|
|
~~~~~~~~~~
|
|
!!! error TS2346: Supplied parameters do not match any signature of call target.
|
|
~
|
|
!!! error TS1009: Trailing comma not allowed. |