14 lines
292 B
Plaintext
14 lines
292 B
Plaintext
|
==== tests/cases/compiler/trailingSeparatorInFunctionCall.ts (2 errors) ====
|
||
|
function f(x, y) {
|
||
|
}
|
||
|
|
||
|
f(1, 2, );
|
||
|
~
|
||
|
!!! Trailing comma not allowed.
|
||
|
|
||
|
function f2<T>(x: T, y: T) {
|
||
|
}
|
||
|
|
||
|
f2(1, 2, );
|
||
|
~
|
||
|
!!! Trailing comma not allowed.
|