|
| 1 | +=== tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperator1.ts === |
| 2 | +declare const a1: string | undefined | null |
| 3 | +>a1 : Symbol(a1, Decl(nullishCoalescingOperator1.ts, 0, 13)) |
| 4 | + |
| 5 | +declare const a2: string | undefined | null |
| 6 | +>a2 : Symbol(a2, Decl(nullishCoalescingOperator1.ts, 1, 13)) |
| 7 | + |
| 8 | +declare const a3: string | undefined | null |
| 9 | +>a3 : Symbol(a3, Decl(nullishCoalescingOperator1.ts, 2, 13)) |
| 10 | + |
| 11 | +declare const a4: string | undefined | null |
| 12 | +>a4 : Symbol(a4, Decl(nullishCoalescingOperator1.ts, 3, 13)) |
| 13 | + |
| 14 | +declare const b1: number | undefined | null |
| 15 | +>b1 : Symbol(b1, Decl(nullishCoalescingOperator1.ts, 5, 13)) |
| 16 | + |
| 17 | +declare const b2: number | undefined | null |
| 18 | +>b2 : Symbol(b2, Decl(nullishCoalescingOperator1.ts, 6, 13)) |
| 19 | + |
| 20 | +declare const b3: number | undefined | null |
| 21 | +>b3 : Symbol(b3, Decl(nullishCoalescingOperator1.ts, 7, 13)) |
| 22 | + |
| 23 | +declare const b4: number | undefined | null |
| 24 | +>b4 : Symbol(b4, Decl(nullishCoalescingOperator1.ts, 8, 13)) |
| 25 | + |
| 26 | +declare const c1: boolean | undefined | null |
| 27 | +>c1 : Symbol(c1, Decl(nullishCoalescingOperator1.ts, 10, 13)) |
| 28 | + |
| 29 | +declare const c2: boolean | undefined | null |
| 30 | +>c2 : Symbol(c2, Decl(nullishCoalescingOperator1.ts, 11, 13)) |
| 31 | + |
| 32 | +declare const c3: boolean | undefined | null |
| 33 | +>c3 : Symbol(c3, Decl(nullishCoalescingOperator1.ts, 12, 13)) |
| 34 | + |
| 35 | +declare const c4: boolean | undefined | null |
| 36 | +>c4 : Symbol(c4, Decl(nullishCoalescingOperator1.ts, 13, 13)) |
| 37 | + |
| 38 | +interface I { a: string } |
| 39 | +>I : Symbol(I, Decl(nullishCoalescingOperator1.ts, 13, 44)) |
| 40 | +>a : Symbol(I.a, Decl(nullishCoalescingOperator1.ts, 15, 13)) |
| 41 | + |
| 42 | +declare const d1: I | undefined | null |
| 43 | +>d1 : Symbol(d1, Decl(nullishCoalescingOperator1.ts, 16, 13)) |
| 44 | +>I : Symbol(I, Decl(nullishCoalescingOperator1.ts, 13, 44)) |
| 45 | + |
| 46 | +declare const d2: I | undefined | null |
| 47 | +>d2 : Symbol(d2, Decl(nullishCoalescingOperator1.ts, 17, 13)) |
| 48 | +>I : Symbol(I, Decl(nullishCoalescingOperator1.ts, 13, 44)) |
| 49 | + |
| 50 | +declare const d3: I | undefined | null |
| 51 | +>d3 : Symbol(d3, Decl(nullishCoalescingOperator1.ts, 18, 13)) |
| 52 | +>I : Symbol(I, Decl(nullishCoalescingOperator1.ts, 13, 44)) |
| 53 | + |
| 54 | +declare const d4: I | undefined | null |
| 55 | +>d4 : Symbol(d4, Decl(nullishCoalescingOperator1.ts, 19, 13)) |
| 56 | +>I : Symbol(I, Decl(nullishCoalescingOperator1.ts, 13, 44)) |
| 57 | + |
| 58 | +const aa1 = a1 ?? 'whatever'; |
| 59 | +>aa1 : Symbol(aa1, Decl(nullishCoalescingOperator1.ts, 21, 5)) |
| 60 | +>a1 : Symbol(a1, Decl(nullishCoalescingOperator1.ts, 0, 13)) |
| 61 | + |
| 62 | +const aa2 = a2 ?? 'whatever'; |
| 63 | +>aa2 : Symbol(aa2, Decl(nullishCoalescingOperator1.ts, 22, 5)) |
| 64 | +>a2 : Symbol(a2, Decl(nullishCoalescingOperator1.ts, 1, 13)) |
| 65 | + |
| 66 | +const aa3 = a3 ?? 'whatever'; |
| 67 | +>aa3 : Symbol(aa3, Decl(nullishCoalescingOperator1.ts, 23, 5)) |
| 68 | +>a3 : Symbol(a3, Decl(nullishCoalescingOperator1.ts, 2, 13)) |
| 69 | + |
| 70 | +const aa4 = a4 ?? 'whatever'; |
| 71 | +>aa4 : Symbol(aa4, Decl(nullishCoalescingOperator1.ts, 24, 5)) |
| 72 | +>a4 : Symbol(a4, Decl(nullishCoalescingOperator1.ts, 3, 13)) |
| 73 | + |
| 74 | +const bb1 = b1 ?? 1; |
| 75 | +>bb1 : Symbol(bb1, Decl(nullishCoalescingOperator1.ts, 26, 5)) |
| 76 | +>b1 : Symbol(b1, Decl(nullishCoalescingOperator1.ts, 5, 13)) |
| 77 | + |
| 78 | +const bb2 = b2 ?? 1; |
| 79 | +>bb2 : Symbol(bb2, Decl(nullishCoalescingOperator1.ts, 27, 5)) |
| 80 | +>b2 : Symbol(b2, Decl(nullishCoalescingOperator1.ts, 6, 13)) |
| 81 | + |
| 82 | +const bb3 = b3 ?? 1; |
| 83 | +>bb3 : Symbol(bb3, Decl(nullishCoalescingOperator1.ts, 28, 5)) |
| 84 | +>b3 : Symbol(b3, Decl(nullishCoalescingOperator1.ts, 7, 13)) |
| 85 | + |
| 86 | +const bb4 = b4 ?? 1; |
| 87 | +>bb4 : Symbol(bb4, Decl(nullishCoalescingOperator1.ts, 29, 5)) |
| 88 | +>b4 : Symbol(b4, Decl(nullishCoalescingOperator1.ts, 8, 13)) |
| 89 | + |
| 90 | +const cc1 = c1 ?? true; |
| 91 | +>cc1 : Symbol(cc1, Decl(nullishCoalescingOperator1.ts, 31, 5)) |
| 92 | +>c1 : Symbol(c1, Decl(nullishCoalescingOperator1.ts, 10, 13)) |
| 93 | + |
| 94 | +const cc2 = c2 ?? true; |
| 95 | +>cc2 : Symbol(cc2, Decl(nullishCoalescingOperator1.ts, 32, 5)) |
| 96 | +>c2 : Symbol(c2, Decl(nullishCoalescingOperator1.ts, 11, 13)) |
| 97 | + |
| 98 | +const cc3 = c3 ?? true; |
| 99 | +>cc3 : Symbol(cc3, Decl(nullishCoalescingOperator1.ts, 33, 5)) |
| 100 | +>c3 : Symbol(c3, Decl(nullishCoalescingOperator1.ts, 12, 13)) |
| 101 | + |
| 102 | +const cc4 = c4 ?? true; |
| 103 | +>cc4 : Symbol(cc4, Decl(nullishCoalescingOperator1.ts, 34, 5)) |
| 104 | +>c4 : Symbol(c4, Decl(nullishCoalescingOperator1.ts, 13, 13)) |
| 105 | + |
| 106 | +const dd1 = d1 ?? {b: 1}; |
| 107 | +>dd1 : Symbol(dd1, Decl(nullishCoalescingOperator1.ts, 36, 5)) |
| 108 | +>d1 : Symbol(d1, Decl(nullishCoalescingOperator1.ts, 16, 13)) |
| 109 | +>b : Symbol(b, Decl(nullishCoalescingOperator1.ts, 36, 19)) |
| 110 | + |
| 111 | +const dd2 = d2 ?? {b: 1}; |
| 112 | +>dd2 : Symbol(dd2, Decl(nullishCoalescingOperator1.ts, 37, 5)) |
| 113 | +>d2 : Symbol(d2, Decl(nullishCoalescingOperator1.ts, 17, 13)) |
| 114 | +>b : Symbol(b, Decl(nullishCoalescingOperator1.ts, 37, 19)) |
| 115 | + |
| 116 | +const dd3 = d3 ?? {b: 1}; |
| 117 | +>dd3 : Symbol(dd3, Decl(nullishCoalescingOperator1.ts, 38, 5)) |
| 118 | +>d3 : Symbol(d3, Decl(nullishCoalescingOperator1.ts, 18, 13)) |
| 119 | +>b : Symbol(b, Decl(nullishCoalescingOperator1.ts, 38, 19)) |
| 120 | + |
| 121 | +const dd4 = d4 ?? {b: 1}; |
| 122 | +>dd4 : Symbol(dd4, Decl(nullishCoalescingOperator1.ts, 39, 5)) |
| 123 | +>d4 : Symbol(d4, Decl(nullishCoalescingOperator1.ts, 19, 13)) |
| 124 | +>b : Symbol(b, Decl(nullishCoalescingOperator1.ts, 39, 19)) |
| 125 | + |
0 commit comments