I thought I didn't need to check the length but forgot that the rest argument is not in the list for class declaration. Now it doesn't crash anymore and there's a test...
14 lines
343 B
JavaScript
14 lines
343 B
JavaScript
declare class C {
|
|
f(
|
|
superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
|
|
...args
|
|
): void,
|
|
}
|
|
|
|
function f(
|
|
superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong,
|
|
...args
|
|
) {}
|
|
|
|
declare class C { f(...superSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLong): void; }
|