|
| 1 | +=== tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts === |
| 2 | + |
| 3 | +interface a { a } |
| 4 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 0, 0)) |
| 5 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 1, 13)) |
| 6 | + |
| 7 | +interface b { b } |
| 8 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 1, 17)) |
| 9 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 2, 13)) |
| 10 | + |
| 11 | +interface c { c } |
| 12 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 2, 17)) |
| 13 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 3, 13)) |
| 14 | + |
| 15 | +type T1 = ([a, b, c]); |
| 16 | +>T1 : Symbol(T1, Decl(destructuringInFunctionType.ts, 3, 17)) |
| 17 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 0, 0)) |
| 18 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 1, 17)) |
| 19 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 2, 17)) |
| 20 | + |
| 21 | +type F1 = ([a, b, c]) => void; |
| 22 | +>F1 : Symbol(F1, Decl(destructuringInFunctionType.ts, 5, 22)) |
| 23 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 6, 12)) |
| 24 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 6, 14)) |
| 25 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 6, 17)) |
| 26 | + |
| 27 | +type T2 = ({ a }); |
| 28 | +>T2 : Symbol(T2, Decl(destructuringInFunctionType.ts, 6, 30)) |
| 29 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 8, 12)) |
| 30 | + |
| 31 | +type F2 = ({ a }) => void; |
| 32 | +>F2 : Symbol(F2, Decl(destructuringInFunctionType.ts, 8, 18)) |
| 33 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 9, 12)) |
| 34 | + |
| 35 | +type T3 = ([{ a: b }, { b: a }]); |
| 36 | +>T3 : Symbol(T3, Decl(destructuringInFunctionType.ts, 9, 26)) |
| 37 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 11, 13)) |
| 38 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 1, 17)) |
| 39 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 11, 23)) |
| 40 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 0, 0)) |
| 41 | + |
| 42 | +type F3 = ([{ a: b }, { b: a }]) => void; |
| 43 | +>F3 : Symbol(F3, Decl(destructuringInFunctionType.ts, 11, 33)) |
| 44 | +>a : Symbol(a) |
| 45 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 12, 13)) |
| 46 | +>b : Symbol(b) |
| 47 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 12, 23)) |
| 48 | + |
| 49 | +type T4 = ([{ a: [b, c] }]); |
| 50 | +>T4 : Symbol(T4, Decl(destructuringInFunctionType.ts, 12, 41)) |
| 51 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 14, 13)) |
| 52 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 1, 17)) |
| 53 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 2, 17)) |
| 54 | + |
| 55 | +type F4 = ([{ a: [b, c] }]) => void; |
| 56 | +>F4 : Symbol(F4, Decl(destructuringInFunctionType.ts, 14, 28)) |
| 57 | +>a : Symbol(a) |
| 58 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 15, 18)) |
| 59 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 15, 20)) |
| 60 | + |
| 61 | +type C1 = new ([{ a: [b, c] }]) => void; |
| 62 | +>C1 : Symbol(C1, Decl(destructuringInFunctionType.ts, 15, 36)) |
| 63 | +>a : Symbol(a) |
| 64 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 17, 22)) |
| 65 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 17, 24)) |
| 66 | + |
| 67 | +var v1 = ([a, b, c]) => "hello"; |
| 68 | +>v1 : Symbol(v1, Decl(destructuringInFunctionType.ts, 19, 3)) |
| 69 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 19, 11)) |
| 70 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 19, 13)) |
| 71 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 19, 16)) |
| 72 | + |
| 73 | +var v2: ([a, b, c]) => string; |
| 74 | +>v2 : Symbol(v2, Decl(destructuringInFunctionType.ts, 20, 3)) |
| 75 | +>a : Symbol(a, Decl(destructuringInFunctionType.ts, 20, 10)) |
| 76 | +>b : Symbol(b, Decl(destructuringInFunctionType.ts, 20, 12)) |
| 77 | +>c : Symbol(c, Decl(destructuringInFunctionType.ts, 20, 15)) |
| 78 | + |
0 commit comments