|
| 1 | +=== tests/cases/compiler/unionTypeErrorMessageTypeRefs01.ts === |
| 2 | +interface Foo { foo: any } |
| 3 | +>Foo : Symbol(Foo, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 0)) |
| 4 | +>foo : Symbol(Foo.foo, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 15)) |
| 5 | + |
| 6 | +interface Bar { bar: any } |
| 7 | +>Bar : Symbol(Bar, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 26)) |
| 8 | +>bar : Symbol(Bar.bar, Decl(unionTypeErrorMessageTypeRefs01.ts, 1, 15)) |
| 9 | + |
| 10 | +interface Baz { baz: any } |
| 11 | +>Baz : Symbol(Baz, Decl(unionTypeErrorMessageTypeRefs01.ts, 1, 26)) |
| 12 | +>baz : Symbol(Baz.baz, Decl(unionTypeErrorMessageTypeRefs01.ts, 2, 15)) |
| 13 | + |
| 14 | +interface Kwah { kwah: any } |
| 15 | +>Kwah : Symbol(Kwah, Decl(unionTypeErrorMessageTypeRefs01.ts, 2, 26)) |
| 16 | +>kwah : Symbol(Kwah.kwah, Decl(unionTypeErrorMessageTypeRefs01.ts, 3, 16)) |
| 17 | + |
| 18 | +//////// |
| 19 | + |
| 20 | +interface A<T> { |
| 21 | +>A : Symbol(A, Decl(unionTypeErrorMessageTypeRefs01.ts, 3, 28)) |
| 22 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 7, 12)) |
| 23 | + |
| 24 | + aProp: T; |
| 25 | +>aProp : Symbol(A.aProp, Decl(unionTypeErrorMessageTypeRefs01.ts, 7, 16)) |
| 26 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 7, 12)) |
| 27 | +} |
| 28 | + |
| 29 | +interface B<T> { |
| 30 | +>B : Symbol(B, Decl(unionTypeErrorMessageTypeRefs01.ts, 9, 1)) |
| 31 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 11, 12)) |
| 32 | + |
| 33 | + bProp: T; |
| 34 | +>bProp : Symbol(B.bProp, Decl(unionTypeErrorMessageTypeRefs01.ts, 11, 16)) |
| 35 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 11, 12)) |
| 36 | +} |
| 37 | + |
| 38 | +interface C<T> { |
| 39 | +>C : Symbol(C, Decl(unionTypeErrorMessageTypeRefs01.ts, 13, 1)) |
| 40 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 15, 12)) |
| 41 | + |
| 42 | + cProp: T; |
| 43 | +>cProp : Symbol(C.cProp, Decl(unionTypeErrorMessageTypeRefs01.ts, 15, 16)) |
| 44 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 15, 12)) |
| 45 | +} |
| 46 | + |
| 47 | +declare const a: A<Foo>; |
| 48 | +>a : Symbol(a, Decl(unionTypeErrorMessageTypeRefs01.ts, 19, 13)) |
| 49 | +>A : Symbol(A, Decl(unionTypeErrorMessageTypeRefs01.ts, 3, 28)) |
| 50 | +>Foo : Symbol(Foo, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 0)) |
| 51 | + |
| 52 | +declare const b: B<Foo>; |
| 53 | +>b : Symbol(b, Decl(unionTypeErrorMessageTypeRefs01.ts, 20, 13)) |
| 54 | +>B : Symbol(B, Decl(unionTypeErrorMessageTypeRefs01.ts, 9, 1)) |
| 55 | +>Foo : Symbol(Foo, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 0)) |
| 56 | + |
| 57 | +declare const c: C<Foo>; |
| 58 | +>c : Symbol(c, Decl(unionTypeErrorMessageTypeRefs01.ts, 21, 13)) |
| 59 | +>C : Symbol(C, Decl(unionTypeErrorMessageTypeRefs01.ts, 13, 1)) |
| 60 | +>Foo : Symbol(Foo, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 0)) |
| 61 | + |
| 62 | +declare let thingOfInterfaces: A<Bar> | B<Baz> | C<Kwah>; |
| 63 | +>thingOfInterfaces : Symbol(thingOfInterfaces, Decl(unionTypeErrorMessageTypeRefs01.ts, 22, 11)) |
| 64 | +>A : Symbol(A, Decl(unionTypeErrorMessageTypeRefs01.ts, 3, 28)) |
| 65 | +>Bar : Symbol(Bar, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 26)) |
| 66 | +>B : Symbol(B, Decl(unionTypeErrorMessageTypeRefs01.ts, 9, 1)) |
| 67 | +>Baz : Symbol(Baz, Decl(unionTypeErrorMessageTypeRefs01.ts, 1, 26)) |
| 68 | +>C : Symbol(C, Decl(unionTypeErrorMessageTypeRefs01.ts, 13, 1)) |
| 69 | +>Kwah : Symbol(Kwah, Decl(unionTypeErrorMessageTypeRefs01.ts, 2, 26)) |
| 70 | + |
| 71 | +thingOfInterfaces = a; |
| 72 | +>thingOfInterfaces : Symbol(thingOfInterfaces, Decl(unionTypeErrorMessageTypeRefs01.ts, 22, 11)) |
| 73 | +>a : Symbol(a, Decl(unionTypeErrorMessageTypeRefs01.ts, 19, 13)) |
| 74 | + |
| 75 | +thingOfInterfaces = b; |
| 76 | +>thingOfInterfaces : Symbol(thingOfInterfaces, Decl(unionTypeErrorMessageTypeRefs01.ts, 22, 11)) |
| 77 | +>b : Symbol(b, Decl(unionTypeErrorMessageTypeRefs01.ts, 20, 13)) |
| 78 | + |
| 79 | +thingOfInterfaces = c; |
| 80 | +>thingOfInterfaces : Symbol(thingOfInterfaces, Decl(unionTypeErrorMessageTypeRefs01.ts, 22, 11)) |
| 81 | +>c : Symbol(c, Decl(unionTypeErrorMessageTypeRefs01.ts, 21, 13)) |
| 82 | + |
| 83 | +//////// |
| 84 | + |
| 85 | +type X<T> = { |
| 86 | +>X : Symbol(X, Decl(unionTypeErrorMessageTypeRefs01.ts, 26, 22)) |
| 87 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 30, 7)) |
| 88 | + |
| 89 | + xProp: T; |
| 90 | +>xProp : Symbol(xProp, Decl(unionTypeErrorMessageTypeRefs01.ts, 30, 13)) |
| 91 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 30, 7)) |
| 92 | +} |
| 93 | + |
| 94 | +type Y<T> = { |
| 95 | +>Y : Symbol(Y, Decl(unionTypeErrorMessageTypeRefs01.ts, 32, 1)) |
| 96 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 34, 7)) |
| 97 | + |
| 98 | + yProp: T; |
| 99 | +>yProp : Symbol(yProp, Decl(unionTypeErrorMessageTypeRefs01.ts, 34, 13)) |
| 100 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 34, 7)) |
| 101 | +} |
| 102 | + |
| 103 | +type Z<T> = { |
| 104 | +>Z : Symbol(Z, Decl(unionTypeErrorMessageTypeRefs01.ts, 36, 1)) |
| 105 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 38, 7)) |
| 106 | + |
| 107 | + zProp: T; |
| 108 | +>zProp : Symbol(zProp, Decl(unionTypeErrorMessageTypeRefs01.ts, 38, 13)) |
| 109 | +>T : Symbol(T, Decl(unionTypeErrorMessageTypeRefs01.ts, 38, 7)) |
| 110 | +} |
| 111 | + |
| 112 | +declare const x: X<Foo>; |
| 113 | +>x : Symbol(x, Decl(unionTypeErrorMessageTypeRefs01.ts, 42, 13)) |
| 114 | +>X : Symbol(X, Decl(unionTypeErrorMessageTypeRefs01.ts, 26, 22)) |
| 115 | +>Foo : Symbol(Foo, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 0)) |
| 116 | + |
| 117 | +declare const y: Y<Foo>; |
| 118 | +>y : Symbol(y, Decl(unionTypeErrorMessageTypeRefs01.ts, 43, 13)) |
| 119 | +>Y : Symbol(Y, Decl(unionTypeErrorMessageTypeRefs01.ts, 32, 1)) |
| 120 | +>Foo : Symbol(Foo, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 0)) |
| 121 | + |
| 122 | +declare const z: Z<Foo>; |
| 123 | +>z : Symbol(z, Decl(unionTypeErrorMessageTypeRefs01.ts, 44, 13)) |
| 124 | +>Z : Symbol(Z, Decl(unionTypeErrorMessageTypeRefs01.ts, 36, 1)) |
| 125 | +>Foo : Symbol(Foo, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 0)) |
| 126 | + |
| 127 | +declare let thingOfTypeAliases: X<Bar> | Y<Baz> | Z<Kwah>; |
| 128 | +>thingOfTypeAliases : Symbol(thingOfTypeAliases, Decl(unionTypeErrorMessageTypeRefs01.ts, 45, 11)) |
| 129 | +>X : Symbol(X, Decl(unionTypeErrorMessageTypeRefs01.ts, 26, 22)) |
| 130 | +>Bar : Symbol(Bar, Decl(unionTypeErrorMessageTypeRefs01.ts, 0, 26)) |
| 131 | +>Y : Symbol(Y, Decl(unionTypeErrorMessageTypeRefs01.ts, 32, 1)) |
| 132 | +>Baz : Symbol(Baz, Decl(unionTypeErrorMessageTypeRefs01.ts, 1, 26)) |
| 133 | +>Z : Symbol(Z, Decl(unionTypeErrorMessageTypeRefs01.ts, 36, 1)) |
| 134 | +>Kwah : Symbol(Kwah, Decl(unionTypeErrorMessageTypeRefs01.ts, 2, 26)) |
| 135 | + |
| 136 | +thingOfTypeAliases = x; |
| 137 | +>thingOfTypeAliases : Symbol(thingOfTypeAliases, Decl(unionTypeErrorMessageTypeRefs01.ts, 45, 11)) |
| 138 | +>x : Symbol(x, Decl(unionTypeErrorMessageTypeRefs01.ts, 42, 13)) |
| 139 | + |
| 140 | +thingOfTypeAliases = y; |
| 141 | +>thingOfTypeAliases : Symbol(thingOfTypeAliases, Decl(unionTypeErrorMessageTypeRefs01.ts, 45, 11)) |
| 142 | +>y : Symbol(y, Decl(unionTypeErrorMessageTypeRefs01.ts, 43, 13)) |
| 143 | + |
| 144 | +thingOfTypeAliases = z; |
| 145 | +>thingOfTypeAliases : Symbol(thingOfTypeAliases, Decl(unionTypeErrorMessageTypeRefs01.ts, 45, 11)) |
| 146 | +>z : Symbol(z, Decl(unionTypeErrorMessageTypeRefs01.ts, 44, 13)) |
| 147 | + |
0 commit comments