mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
parent
038f665171
commit
bf6d265b97
18
tests/cases/fourslash/signatureHelpInRecursiveType.ts
Normal file
18
tests/cases/fourslash/signatureHelpInRecursiveType.ts
Normal file
@ -0,0 +1,18 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////type Tail<T extends any[]> =
|
||||
//// ((...args: T) => any) extends ((head: any, ...tail: infer R) => any) ? R : never;
|
||||
////
|
||||
////type Reverse<List extends any[]> = _Reverse<List, []>;
|
||||
////
|
||||
////type _Reverse<Source extends any[], Result extends any[] = []> = {
|
||||
//// 1: Result,
|
||||
//// 0: _Reverse<Tail<Source>, 0>,
|
||||
////}[Source extends [] ? 1 : 0];
|
||||
////
|
||||
////type Foo = Reverse<[0,/**/]>;
|
||||
|
||||
verify.signatureHelp({
|
||||
marker: "",
|
||||
text: "Reverse<List extends any[]>",
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user