|
| 1 | +=== tests/cases/compiler/contextuallyTypedGenericAssignment.ts === |
| 2 | +function foo<A extends any[]>( |
| 3 | +>foo : Symbol(foo, Decl(contextuallyTypedGenericAssignment.ts, 0, 0)) |
| 4 | +>A : Symbol(A, Decl(contextuallyTypedGenericAssignment.ts, 0, 13)) |
| 5 | + |
| 6 | + arg: <T extends { a: number }>(t: T, ...rest: A) => number |
| 7 | +>arg : Symbol(arg, Decl(contextuallyTypedGenericAssignment.ts, 0, 30)) |
| 8 | +>T : Symbol(T, Decl(contextuallyTypedGenericAssignment.ts, 1, 10)) |
| 9 | +>a : Symbol(a, Decl(contextuallyTypedGenericAssignment.ts, 1, 21)) |
| 10 | +>t : Symbol(t, Decl(contextuallyTypedGenericAssignment.ts, 1, 35)) |
| 11 | +>T : Symbol(T, Decl(contextuallyTypedGenericAssignment.ts, 1, 10)) |
| 12 | +>rest : Symbol(rest, Decl(contextuallyTypedGenericAssignment.ts, 1, 40)) |
| 13 | +>A : Symbol(A, Decl(contextuallyTypedGenericAssignment.ts, 0, 13)) |
| 14 | + |
| 15 | +) { } |
| 16 | + |
| 17 | +foo((t, u: number) => t.a) |
| 18 | +>foo : Symbol(foo, Decl(contextuallyTypedGenericAssignment.ts, 0, 0)) |
| 19 | +>t : Symbol(t, Decl(contextuallyTypedGenericAssignment.ts, 4, 5)) |
| 20 | +>u : Symbol(u, Decl(contextuallyTypedGenericAssignment.ts, 4, 7)) |
| 21 | +>t.a : Symbol(a, Decl(contextuallyTypedGenericAssignment.ts, 1, 21)) |
| 22 | +>t : Symbol(t, Decl(contextuallyTypedGenericAssignment.ts, 4, 5)) |
| 23 | +>a : Symbol(a, Decl(contextuallyTypedGenericAssignment.ts, 1, 21)) |
| 24 | + |
0 commit comments