Skip to content

Commit afec056

Browse files
committed
Add more error case checks
1 parent 1275a20 commit afec056

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/cases/conformance/types/conditional/inferTypes1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,7 @@ type T51 = X3<{ a: (x: string) => void }>; // never
6969
type T52 = X3<{ a: (x: string) => void, b: (x: string) => void }>; // string
7070
type T53 = X3<{ a: (x: number) => void, b: (x: string) => void }>; // string & number
7171
type T54 = X3<{ a: (x: number) => void, b: () => void }>; // number
72+
73+
type T60 = infer U; // Error
74+
type T61<T> = infer A extends infer B ? infer C : infer D; // Error
75+
type T62<T> = U extends (infer U)[] ? U : U; // Error

0 commit comments

Comments
 (0)