Add tests case for function check type being correctly paranthesized in quick info (#48836)

This commit is contained in:
Mateusz Burzyński 2022-05-04 02:05:37 +02:00 committed by GitHub
parent 5f9c9a6ccf
commit 9469f95bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,6 @@
///<reference path="fourslash.ts" />
////export type /**/Tail<T extends any[]> = ((...t: T) => void) extends (h: any, ...rest: infer R) => void ? R : never;
verify.quickInfoAt("", "type Tail<T extends any[]> = ((...t: T) => void) extends (h: any, ...rest: infer R) => void ? R : never");