@@ -31,9 +31,11 @@ typeSatisfaction_errorLocations1.ts(47,24): error TS2322: Type 'number' is not a
3131typeSatisfaction_errorLocations1.ts(48,21): error TS2322: Type '{ a: number; }' is not assignable to type '{ a: true; }'.
3232 Types of property 'a' are incompatible.
3333 Type 'number' is not assignable to type 'true'.
34+ typeSatisfaction_errorLocations1.ts(50,23): error TS2741: Property 'a' is missing in type '{}' but required in type '{ a: true; }'.
35+ typeSatisfaction_errorLocations1.ts(51,24): error TS2741: Property 'a' is missing in type '{}' but required in type '{ a: true; }'.
3436
3537
36- ==== typeSatisfaction_errorLocations1.ts (22 errors) ====
38+ ==== typeSatisfaction_errorLocations1.ts (24 errors) ====
3739 const obj1 = { a: 1 };
3840
3941 const fn1 = (s: { a: true }) => {};
@@ -143,4 +145,13 @@ typeSatisfaction_errorLocations1.ts(48,21): error TS2322: Type '{ a: number; }'
143145!!! error TS2322: Type '{ a: number; }' is not assignable to type '{ a: true; }'.
144146!!! error TS2322: Types of property 'a' are incompatible.
145147!!! error TS2322: Type 'number' is not assignable to type 'true'.
148+
149+ ((): { a: true } => (({}) satisfies unknown) satisfies unknown)();
150+ ~~
151+ !!! error TS2741: Property 'a' is missing in type '{}' but required in type '{ a: true; }'.
152+ !!! related TS2728 typeSatisfaction_errorLocations1.ts:50:8: 'a' is declared here.
153+ ((): { a: true } => ((({}) satisfies unknown)) satisfies unknown)();
154+ ~~
155+ !!! error TS2741: Property 'a' is missing in type '{}' but required in type '{ a: true; }'.
156+ !!! related TS2728 typeSatisfaction_errorLocations1.ts:51:8: 'a' is declared here.
146157
0 commit comments