mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 05:55:11 -05:00
Add regression test
This commit is contained in:
11
tests/cases/compiler/getParameterNameAtPosition.ts
Normal file
11
tests/cases/compiler/getParameterNameAtPosition.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// @strict: true
|
||||
|
||||
// Repro from #30171
|
||||
|
||||
interface Mock<Y extends any[]> extends Function {
|
||||
(...args: Y): any;
|
||||
}
|
||||
type Tester = (opts: any, done: (...args: any[]) => any) => any;
|
||||
declare function cases(tester: Tester): void;
|
||||
declare function fn<Y extends any[]>(implementation?: (...args: Y) => any): Mock<Y>;
|
||||
cases(fn(opts => { }));
|
||||
Reference in New Issue
Block a user