@@ -4,7 +4,7 @@ declare let x1: { __typename?: 'TypeTwo' } & { a: boolean };
44>__typename : Symbol(__typename, Decl(commonTypeIntersection.ts, 0, 17))
55>a : Symbol(a, Decl(commonTypeIntersection.ts, 0, 46))
66
7- let y1: { __typename?: 'TypeOne' } & { a: boolean} = x1; // No error!
7+ let y1: { __typename?: 'TypeOne' } & { a: boolean} = x1; // should error here
88>y1 : Symbol(y1, Decl(commonTypeIntersection.ts, 1, 3))
99>__typename : Symbol(__typename, Decl(commonTypeIntersection.ts, 1, 9))
1010>a : Symbol(a, Decl(commonTypeIntersection.ts, 1, 38))
@@ -14,7 +14,7 @@ declare let x2: { __typename?: 'TypeTwo' } & string;
1414>x2 : Symbol(x2, Decl(commonTypeIntersection.ts, 2, 11))
1515>__typename : Symbol(__typename, Decl(commonTypeIntersection.ts, 2, 17))
1616
17- let y2: { __typename?: 'TypeOne' } & string = x2; // No error!
17+ let y2: { __typename?: 'TypeOne' } & string = x2; // should error here
1818>y2 : Symbol(y2, Decl(commonTypeIntersection.ts, 3, 3))
1919>__typename : Symbol(__typename, Decl(commonTypeIntersection.ts, 3, 9))
2020>x2 : Symbol(x2, Decl(commonTypeIntersection.ts, 2, 11))
0 commit comments