|
| 1 | +=== tests/cases/compiler/conditionalPrependNoHang.ts === |
| 2 | +export type Prepend<Elm, T extends unknown[]> = |
| 3 | +>Prepend : Symbol(Prepend, Decl(conditionalPrependNoHang.ts, 0, 0)) |
| 4 | +>Elm : Symbol(Elm, Decl(conditionalPrependNoHang.ts, 0, 20)) |
| 5 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 0, 24)) |
| 6 | + |
| 7 | + T extends unknown ? |
| 8 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 0, 24)) |
| 9 | + |
| 10 | + ((arg: Elm, ...rest: T) => void) extends ((...args: infer T2) => void) ? T2 : |
| 11 | +>arg : Symbol(arg, Decl(conditionalPrependNoHang.ts, 2, 4)) |
| 12 | +>Elm : Symbol(Elm, Decl(conditionalPrependNoHang.ts, 0, 20)) |
| 13 | +>rest : Symbol(rest, Decl(conditionalPrependNoHang.ts, 2, 13)) |
| 14 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 0, 24)) |
| 15 | +>args : Symbol(args, Decl(conditionalPrependNoHang.ts, 2, 45)) |
| 16 | +>T2 : Symbol(T2, Decl(conditionalPrependNoHang.ts, 2, 59)) |
| 17 | +>T2 : Symbol(T2, Decl(conditionalPrependNoHang.ts, 2, 59)) |
| 18 | + |
| 19 | + never : |
| 20 | + never; |
| 21 | +export type ExactExtract<T, U> = T extends U ? U extends T ? T : never : never; |
| 22 | +>ExactExtract : Symbol(ExactExtract, Decl(conditionalPrependNoHang.ts, 4, 8)) |
| 23 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 5, 25)) |
| 24 | +>U : Symbol(U, Decl(conditionalPrependNoHang.ts, 5, 27)) |
| 25 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 5, 25)) |
| 26 | +>U : Symbol(U, Decl(conditionalPrependNoHang.ts, 5, 27)) |
| 27 | +>U : Symbol(U, Decl(conditionalPrependNoHang.ts, 5, 27)) |
| 28 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 5, 25)) |
| 29 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 5, 25)) |
| 30 | + |
| 31 | +type Conv<T, U = T> = |
| 32 | +>Conv : Symbol(Conv, Decl(conditionalPrependNoHang.ts, 5, 79)) |
| 33 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 7, 10)) |
| 34 | +>U : Symbol(U, Decl(conditionalPrependNoHang.ts, 7, 12)) |
| 35 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 7, 10)) |
| 36 | + |
| 37 | + { 0: [T]; 1: Prepend<T, Conv<ExactExtract<U, T>>>;}[U extends T ? 0 : 1]; |
| 38 | +>0 : Symbol(0, Decl(conditionalPrependNoHang.ts, 8, 3)) |
| 39 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 7, 10)) |
| 40 | +>1 : Symbol(1, Decl(conditionalPrependNoHang.ts, 8, 11)) |
| 41 | +>Prepend : Symbol(Prepend, Decl(conditionalPrependNoHang.ts, 0, 0)) |
| 42 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 7, 10)) |
| 43 | +>Conv : Symbol(Conv, Decl(conditionalPrependNoHang.ts, 5, 79)) |
| 44 | +>ExactExtract : Symbol(ExactExtract, Decl(conditionalPrependNoHang.ts, 4, 8)) |
| 45 | +>U : Symbol(U, Decl(conditionalPrependNoHang.ts, 7, 12)) |
| 46 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 7, 10)) |
| 47 | +>U : Symbol(U, Decl(conditionalPrependNoHang.ts, 7, 12)) |
| 48 | +>T : Symbol(T, Decl(conditionalPrependNoHang.ts, 7, 10)) |
| 49 | + |
0 commit comments