|
| 1 | +=== tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers2.ts === |
| 2 | +function f00([x, y]) {} |
| 3 | +>f00 : Symbol(f00, Decl(destructuringWithLiteralInitializers2.ts, 0, 0)) |
| 4 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 0, 14)) |
| 5 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 0, 16)) |
| 6 | + |
| 7 | +function f01([x, y] = []) {} |
| 8 | +>f01 : Symbol(f01, Decl(destructuringWithLiteralInitializers2.ts, 0, 23)) |
| 9 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 1, 14)) |
| 10 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 1, 16)) |
| 11 | + |
| 12 | +function f02([x, y] = [1]) {} |
| 13 | +>f02 : Symbol(f02, Decl(destructuringWithLiteralInitializers2.ts, 1, 28)) |
| 14 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 2, 14)) |
| 15 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 2, 16)) |
| 16 | + |
| 17 | +function f03([x, y] = [1, 'foo']) {} |
| 18 | +>f03 : Symbol(f03, Decl(destructuringWithLiteralInitializers2.ts, 2, 29)) |
| 19 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 3, 14)) |
| 20 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 3, 16)) |
| 21 | + |
| 22 | +function f10([x = 0, y]) {} |
| 23 | +>f10 : Symbol(f10, Decl(destructuringWithLiteralInitializers2.ts, 3, 36)) |
| 24 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 5, 14)) |
| 25 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 5, 20)) |
| 26 | + |
| 27 | +function f11([x = 0, y] = []) {} |
| 28 | +>f11 : Symbol(f11, Decl(destructuringWithLiteralInitializers2.ts, 5, 27)) |
| 29 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 6, 14)) |
| 30 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 6, 20)) |
| 31 | + |
| 32 | +function f12([x = 0, y] = [1]) {} |
| 33 | +>f12 : Symbol(f12, Decl(destructuringWithLiteralInitializers2.ts, 6, 32)) |
| 34 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 7, 14)) |
| 35 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 7, 20)) |
| 36 | + |
| 37 | +function f13([x = 0, y] = [1, 'foo']) {} |
| 38 | +>f13 : Symbol(f13, Decl(destructuringWithLiteralInitializers2.ts, 7, 33)) |
| 39 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 8, 14)) |
| 40 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 8, 20)) |
| 41 | + |
| 42 | +function f20([x = 0, y = 'bar']) {} |
| 43 | +>f20 : Symbol(f20, Decl(destructuringWithLiteralInitializers2.ts, 8, 40)) |
| 44 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 10, 14)) |
| 45 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 10, 20)) |
| 46 | + |
| 47 | +function f21([x = 0, y = 'bar'] = []) {} |
| 48 | +>f21 : Symbol(f21, Decl(destructuringWithLiteralInitializers2.ts, 10, 35)) |
| 49 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 11, 14)) |
| 50 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 11, 20)) |
| 51 | + |
| 52 | +function f22([x = 0, y = 'bar'] = [1]) {} |
| 53 | +>f22 : Symbol(f22, Decl(destructuringWithLiteralInitializers2.ts, 11, 40)) |
| 54 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 12, 14)) |
| 55 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 12, 20)) |
| 56 | + |
| 57 | +function f23([x = 0, y = 'bar'] = [1, 'foo']) {} |
| 58 | +>f23 : Symbol(f23, Decl(destructuringWithLiteralInitializers2.ts, 12, 41)) |
| 59 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 13, 14)) |
| 60 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 13, 20)) |
| 61 | + |
| 62 | +declare const nx: number | undefined; |
| 63 | +>nx : Symbol(nx, Decl(destructuringWithLiteralInitializers2.ts, 15, 13)) |
| 64 | + |
| 65 | +declare const sx: string | undefined; |
| 66 | +>sx : Symbol(sx, Decl(destructuringWithLiteralInitializers2.ts, 16, 13)) |
| 67 | + |
| 68 | +function f30([x = 0, y = 'bar']) {} |
| 69 | +>f30 : Symbol(f30, Decl(destructuringWithLiteralInitializers2.ts, 16, 37)) |
| 70 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 18, 14)) |
| 71 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 18, 20)) |
| 72 | + |
| 73 | +function f31([x = 0, y = 'bar'] = []) {} |
| 74 | +>f31 : Symbol(f31, Decl(destructuringWithLiteralInitializers2.ts, 18, 35)) |
| 75 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 19, 14)) |
| 76 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 19, 20)) |
| 77 | + |
| 78 | +function f32([x = 0, y = 'bar'] = [nx]) {} |
| 79 | +>f32 : Symbol(f32, Decl(destructuringWithLiteralInitializers2.ts, 19, 40)) |
| 80 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 20, 14)) |
| 81 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 20, 20)) |
| 82 | +>nx : Symbol(nx, Decl(destructuringWithLiteralInitializers2.ts, 15, 13)) |
| 83 | + |
| 84 | +function f33([x = 0, y = 'bar'] = [nx, sx]) {} |
| 85 | +>f33 : Symbol(f33, Decl(destructuringWithLiteralInitializers2.ts, 20, 42)) |
| 86 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 21, 14)) |
| 87 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 21, 20)) |
| 88 | +>nx : Symbol(nx, Decl(destructuringWithLiteralInitializers2.ts, 15, 13)) |
| 89 | +>sx : Symbol(sx, Decl(destructuringWithLiteralInitializers2.ts, 16, 13)) |
| 90 | + |
| 91 | +function f40([x = 0, y = 'bar']) {} |
| 92 | +>f40 : Symbol(f40, Decl(destructuringWithLiteralInitializers2.ts, 21, 46)) |
| 93 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 23, 14)) |
| 94 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 23, 20)) |
| 95 | + |
| 96 | +function f41([x = 0, y = 'bar'] = []) {} |
| 97 | +>f41 : Symbol(f41, Decl(destructuringWithLiteralInitializers2.ts, 23, 35)) |
| 98 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 24, 14)) |
| 99 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 24, 20)) |
| 100 | + |
| 101 | +function f42([x = 0, y = 'bar'] = [sx]) {} |
| 102 | +>f42 : Symbol(f42, Decl(destructuringWithLiteralInitializers2.ts, 24, 40)) |
| 103 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 25, 14)) |
| 104 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 25, 20)) |
| 105 | +>sx : Symbol(sx, Decl(destructuringWithLiteralInitializers2.ts, 16, 13)) |
| 106 | + |
| 107 | +function f43([x = 0, y = 'bar'] = [sx, nx]) {} |
| 108 | +>f43 : Symbol(f43, Decl(destructuringWithLiteralInitializers2.ts, 25, 42)) |
| 109 | +>x : Symbol(x, Decl(destructuringWithLiteralInitializers2.ts, 26, 14)) |
| 110 | +>y : Symbol(y, Decl(destructuringWithLiteralInitializers2.ts, 26, 20)) |
| 111 | +>sx : Symbol(sx, Decl(destructuringWithLiteralInitializers2.ts, 16, 13)) |
| 112 | +>nx : Symbol(nx, Decl(destructuringWithLiteralInitializers2.ts, 15, 13)) |
| 113 | + |
0 commit comments