@@ -4,7 +4,7 @@ declare let x1: { __typename?: 'TypeTwo' } & { a: boolean };
4
4
>__typename : Symbol(__typename, Decl(commonTypeIntersection.ts, 0, 17))
5
5
>a : Symbol(a, Decl(commonTypeIntersection.ts, 0, 46))
6
6
7
- let y1: { __typename?: 'TypeOne' } & { a: boolean} = x1; // No error!
7
+ let y1: { __typename?: 'TypeOne' } & { a: boolean} = x1; // should error here
8
8
>y1 : Symbol(y1, Decl(commonTypeIntersection.ts, 1, 3))
9
9
>__typename : Symbol(__typename, Decl(commonTypeIntersection.ts, 1, 9))
10
10
>a : Symbol(a, Decl(commonTypeIntersection.ts, 1, 38))
@@ -14,7 +14,7 @@ declare let x2: { __typename?: 'TypeTwo' } & string;
14
14
>x2 : Symbol(x2, Decl(commonTypeIntersection.ts, 2, 11))
15
15
>__typename : Symbol(__typename, Decl(commonTypeIntersection.ts, 2, 17))
16
16
17
- let y2: { __typename?: 'TypeOne' } & string = x2; // No error!
17
+ let y2: { __typename?: 'TypeOne' } & string = x2; // should error here
18
18
>y2 : Symbol(y2, Decl(commonTypeIntersection.ts, 3, 3))
19
19
>__typename : Symbol(__typename, Decl(commonTypeIntersection.ts, 3, 9))
20
20
>x2 : Symbol(x2, Decl(commonTypeIntersection.ts, 2, 11))
0 commit comments