From 556c27959b6d55e461b2c59a6c8fd845fb112dad Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Nov 2026 17:29:01 -0800 Subject: [PATCH 1/6] Produce union types when instantiating generic contextual types --- tsc/internal/checker/checker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsc/internal/checker/checker.go b/tsc/internal/checker/checker.go index 694fc155b8e16..bf972d3322cb0 100644 --- a/tsc/internal/checker/checker.go +++ b/tsc/internal/checker/checker.go @@ -9713,7 +9713,7 @@ func (c *Checker) inferTypeArguments(node *ast.Node, signature *Signature, args outerReturnMapper = c.createOuterReturnMapper(outerContext) } returnSourceType := c.instantiateType(contextualType, outerReturnMapper) - c.inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType, InferencePriorityNone, false) + c.inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType, InferencePriorityReturnType, false) if core.Some(returnContext.inferences, hasInferenceCandidates) { context.returnMapper = c.getMapperFromContext(c.cloneInferredPartOfContext(returnContext)) } else { @@ -31781,7 +31781,7 @@ func (c *Checker) instantiateContextualType(contextualType *Type, node *ast.Node // the 'boolean' type from the contextual type such that contextually typed boolean // literals actually end up widening to 'boolean' (see #48363). t := c.instantiateInstantiableTypes(contextualType, inferenceContext.returnMapper) - if t.flags&TypeFlagsAnyOrUnknown == 0 { + if t.flags&(TypeFlagsAnyOrUnknown|TypeFlagsNever) == 0 { if t.flags&TypeFlagsUnion != 0 && containsType(t.Types(), c.regularFalseType) && containsType(t.Types(), c.regularTrueType) { return c.filterType(t, func(t *Type) bool { return t != c.regularFalseType && t != c.regularTrueType From b3bae7d60df95d0fa444a12a74123c2bfa97fa47 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Nov 2026 17:30:40 -0800 Subject: [PATCH 2/6] Fix check for return type inferences (introduced in #64530) --- tsc/internal/checker/inference.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsc/internal/checker/inference.go b/tsc/internal/checker/inference.go index 8b0cc87aedef4..ec3b957518375 100644 --- a/tsc/internal/checker/inference.go +++ b/tsc/internal/checker/inference.go @@ -1395,11 +1395,11 @@ func (c *Checker) getInferredType(n *InferenceContext, index int) *Type { if constraint != nil { instantiatedConstraint := c.instantiateType(constraint, n.nonFixingMapper) // A pure return type inference is still filtered in a recursive call resolution, whose result can become the type of the enclosing declaration. - if inferredType != nil && (n.flags&InferenceFlagsNoConstraintChecks == 0 || inference.priority == InferencePriorityReturnType) { + if inferredType != nil && (n.flags&InferenceFlagsNoConstraintChecks == 0 || inference.priority&InferencePriorityReturnType != 0) { constraintWithThis := c.getTypeWithThisArgument(instantiatedConstraint, inferredType, false) if n.compareTypes(inferredType, constraintWithThis, false) == TernaryFalse { var filteredByConstraint *Type - if inference.priority == InferencePriorityReturnType { + if inference.priority&InferencePriorityReturnType != 0 { // If we have a pure return type inference, we may succeed by removing constituents of the inferred type // that aren't assignable to the constraint type (pure return type inferences are speculation anyway). filteredByConstraint = c.mapType(inferredType, func(t *Type) *Type { From 4169ca3297cebc048194379ea88947ac72f99a39 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Nov 2026 17:34:43 -0800 Subject: [PATCH 3/6] Add regression test --- ...ontextualReturnTypeInferenceUnions.symbols | 36 +++++++++++++++++++ .../contextualReturnTypeInferenceUnions.types | 30 ++++++++++++++++ .../contextualReturnTypeInferenceUnions.ts | 11 ++++++ 3 files changed, 77 insertions(+) create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnTypeInferenceUnions.symbols create mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnTypeInferenceUnions.types create mode 100644 tsc/testdata/tests/cases/compiler/contextualReturnTypeInferenceUnions.ts diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnTypeInferenceUnions.symbols b/tsc/testdata/baselines/reference/compiler/contextualReturnTypeInferenceUnions.symbols new file mode 100644 index 0000000000000..92ef48f5fb104 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnTypeInferenceUnions.symbols @@ -0,0 +1,36 @@ +//// [tests/cases/compiler/contextualReturnTypeInferenceUnions.ts] //// + +=== contextualReturnTypeInferenceUnions.ts === +// https://github.com/microsoft/TypeScript/issues/64690 + +type Ok = { ok: true; value: T }; +>Ok : Symbol(Ok, Decl(contextualReturnTypeInferenceUnions.ts, 0, 0)) +>T : Symbol(T, Decl(contextualReturnTypeInferenceUnions.ts, 2, 8)) +>ok : Symbol(ok, Decl(contextualReturnTypeInferenceUnions.ts, 2, 14)) +>value : Symbol(value, Decl(contextualReturnTypeInferenceUnions.ts, 2, 24)) +>T : Symbol(T, Decl(contextualReturnTypeInferenceUnions.ts, 2, 8)) + +type Err = { ok: false; value: E }; +>Err : Symbol(Err, Decl(contextualReturnTypeInferenceUnions.ts, 2, 36)) +>E : Symbol(E, Decl(contextualReturnTypeInferenceUnions.ts, 3, 9)) +>ok : Symbol(ok, Decl(contextualReturnTypeInferenceUnions.ts, 3, 15)) +>value : Symbol(value, Decl(contextualReturnTypeInferenceUnions.ts, 3, 26)) +>E : Symbol(E, Decl(contextualReturnTypeInferenceUnions.ts, 3, 9)) + +declare function ok(value: T): Ok; +>ok : Symbol(ok, Decl(contextualReturnTypeInferenceUnions.ts, 3, 38)) +>T : Symbol(T, Decl(contextualReturnTypeInferenceUnions.ts, 4, 20)) +>value : Symbol(value, Decl(contextualReturnTypeInferenceUnions.ts, 4, 29)) +>T : Symbol(T, Decl(contextualReturnTypeInferenceUnions.ts, 4, 20)) +>Ok : Symbol(Ok, Decl(contextualReturnTypeInferenceUnions.ts, 0, 0)) +>T : Symbol(T, Decl(contextualReturnTypeInferenceUnions.ts, 4, 20)) + +export function f(): Ok | Err { +>f : Symbol(f, Decl(contextualReturnTypeInferenceUnions.ts, 4, 46)) +>Ok : Symbol(Ok, Decl(contextualReturnTypeInferenceUnions.ts, 0, 0)) +>Err : Symbol(Err, Decl(contextualReturnTypeInferenceUnions.ts, 2, 36)) + + return ok([]); +>ok : Symbol(ok, Decl(contextualReturnTypeInferenceUnions.ts, 3, 38)) +} + diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnTypeInferenceUnions.types b/tsc/testdata/baselines/reference/compiler/contextualReturnTypeInferenceUnions.types new file mode 100644 index 0000000000000..d7d5fd7b88e69 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnTypeInferenceUnions.types @@ -0,0 +1,30 @@ +//// [tests/cases/compiler/contextualReturnTypeInferenceUnions.ts] //// + +=== contextualReturnTypeInferenceUnions.ts === +// https://github.com/microsoft/TypeScript/issues/64690 + +type Ok = { ok: true; value: T }; +>Ok : Ok +>ok : true +>true : true +>value : T + +type Err = { ok: false; value: E }; +>Err : Err +>ok : false +>false : false +>value : E + +declare function ok(value: T): Ok; +>ok : (value: T) => Ok +>value : T + +export function f(): Ok | Err { +>f : () => Ok | Err + + return ok([]); +>ok([]) : Ok<[]> +>ok : (value: T) => Ok +>[] : [] +} + diff --git a/tsc/testdata/tests/cases/compiler/contextualReturnTypeInferenceUnions.ts b/tsc/testdata/tests/cases/compiler/contextualReturnTypeInferenceUnions.ts new file mode 100644 index 0000000000000..32cd78cac7f4d --- /dev/null +++ b/tsc/testdata/tests/cases/compiler/contextualReturnTypeInferenceUnions.ts @@ -0,0 +1,11 @@ +// @noEmit: true + +// https://github.com/microsoft/TypeScript/issues/64690 + +type Ok = { ok: true; value: T }; +type Err = { ok: false; value: E }; +declare function ok(value: T): Ok; + +export function f(): Ok | Err { + return ok([]); +} From b5e1f00110dbb0913da2acb048221cdc4cc170dc Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 20 Nov 2026 18:13:34 -0800 Subject: [PATCH 4/6] Accept new baselines --- ...Callback(checkorder=typesfirst).errors.txt | 24 ------------------- ...tternCallback(checkorder=typesfirst).types | 18 +++++++------- ...eckOrder(checkorder=typesfirst).errors.txt | 13 +++++++--- ...assCheckOrder(checkorder=typesfirst).types | 4 ++-- ...ceNotTooBroad(checkorder=typesfirst).types | 16 ++++++------- 5 files changed, 29 insertions(+), 46 deletions(-) delete mode 100644 tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).errors.txt diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).errors.txt deleted file mode 100644 index 0976f43f81f01..0000000000000 --- a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).errors.txt +++ /dev/null @@ -1,24 +0,0 @@ -contextualReturnArrayPatternCallback.ts(13,19): error TS2322: Type 'unknown' is not assignable to type 'string'. - - -==== contextualReturnArrayPatternCallback.ts (1 errors) ==== - interface Matcher { - matcher(): { match(value: Input): boolean; value?: Value }; - } - type Pattern = Input | Matcher | { [Key in keyof Input]?: Pattern }; - type ArrayElement = Input extends readonly (infer Value)[] ? Value : unknown; - declare function array>>(value: Value): Matcher; - declare function when unknown>(callback: Callback): Matcher; - declare function accept>(value: Value): void; - - accept({ - list: array({ - prop: when(value => { - const text: string = value; - ~~~~ -!!! error TS2322: Type 'unknown' is not assignable to type 'string'. - return true; - }), - }), - }); - \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).types index 68eb717e1e135..8ae0e4c69acc3 100644 --- a/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).types +++ b/tsc/testdata/baselines/reference/compiler/contextualReturnArrayPatternCallback(checkorder=typesfirst).types @@ -32,24 +32,24 @@ declare function accept>(val accept({ >accept({ list: array({ prop: when(value => { const text: string = value; return true; }), }),}) : void >accept : >(value: Value) => void ->{ list: array({ prop: when(value => { const text: string = value; return true; }), }),} : { list: Matcher<{ prop: string; }[], { prop: Matcher; }>; } +>{ list: array({ prop: when(value => { const text: string = value; return true; }), }),} : { list: Matcher<{ prop: string; }[], { prop: Matcher; }>; } list: array({ ->list : Matcher<{ prop: string; }[], { prop: Matcher; }> ->array({ prop: when(value => { const text: string = value; return true; }), }) : Matcher<{ prop: string; }[], { prop: Matcher; }> +>list : Matcher<{ prop: string; }[], { prop: Matcher; }> +>array({ prop: when(value => { const text: string = value; return true; }), }) : Matcher<{ prop: string; }[], { prop: Matcher; }> >array : >>(value: Value) => Matcher ->{ prop: when(value => { const text: string = value; return true; }), } : { prop: Matcher; } +>{ prop: when(value => { const text: string = value; return true; }), } : { prop: Matcher; } prop: when(value => { ->prop : Matcher ->when(value => { const text: string = value; return true; }) : Matcher +>prop : Matcher +>when(value => { const text: string = value; return true; }) : Matcher >when : unknown>(callback: Callback) => Matcher ->value => { const text: string = value; return true; } : (value: unknown) => boolean ->value : unknown +>value => { const text: string = value; return true; } : (value: string) => boolean +>value : string const text: string = value; >text : string ->value : unknown +>value : string return true; >true : true diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt index 07c9bf3cefd3a..47ee86b9b2ffc 100644 --- a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt @@ -1,4 +1,7 @@ -mixinMethodsReferringToAppliedClassCheckOrder.ts(31,28): error TS2507: Type 'never' is not a constructor function type. +mixinMethodsReferringToAppliedClassCheckOrder.ts(31,7): error TS2417: Class static side 'typeof MixinApplied' incorrectly extends base class static side '{ prototype: (Anonymous function).Mixin2; } & { prototype: (Anonymous function).Mixin; }'. + Types of property 'prototype' are incompatible. + Type 'MixinApplied' is not assignable to type '(Anonymous function).Mixin2 & (Anonymous function).Mixin'. + Property 'bar' is missing in type 'MixinApplied' but required in type '(Anonymous function).Mixin2'. ==== mixinMethodsReferringToAppliedClassCheckOrder.ts (1 errors) ==== @@ -33,6 +36,10 @@ mixinMethodsReferringToAppliedClassCheckOrder.ts(31,28): error TS2507: Type 'nev }) class MixinApplied extends Mixin2F(MixinF()) {} - ~~~~~~~~~~~~~~~~~ -!!! error TS2507: Type 'never' is not a constructor function type. + ~~~~~~~~~~~~ +!!! error TS2417: Class static side 'typeof MixinApplied' incorrectly extends base class static side '{ prototype: (Anonymous function).Mixin2; } & { prototype: (Anonymous function).Mixin; }'. +!!! error TS2417: Types of property 'prototype' are incompatible. +!!! error TS2417: Type 'MixinApplied' is not assignable to type '(Anonymous function).Mixin2 & (Anonymous function).Mixin'. +!!! error TS2417: Property 'bar' is missing in type 'MixinApplied' but required in type '(Anonymous function).Mixin2'. +!!! related TS2728 mixinMethodsReferringToAppliedClassCheckOrder.ts:26:5: 'bar' is declared here. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types index e17df722dc992..337a11c28ca64 100644 --- a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types @@ -83,8 +83,8 @@ const Mixin2F = makeMixin(>(Base: TBase) => { class MixinApplied extends Mixin2F(MixinF()) {} >MixinApplied : MixinApplied ->Mixin2F(MixinF()) : never +>Mixin2F(MixinF()) : ((abstract new (...args: any[]) => (Anonymous function).Mixin2) & { prototype: (Anonymous function).Mixin2; }) & ((abstract new (...args: any[]) => (Anonymous function).Mixin) & { prototype: (Anonymous function).Mixin; }) & ConstructorType >Mixin2F : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase ->MixinF() : never +>MixinF() : ((abstract new (...args: any[]) => (Anonymous function).Mixin) & { prototype: (Anonymous function).Mixin; }) & ConstructorType >MixinF : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase diff --git a/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).types index 1f07d04ed8463..94962df020556 100644 --- a/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).types +++ b/tsc/testdata/baselines/reference/compiler/returnTypeInferenceNotTooBroad(checkorder=typesfirst).types @@ -50,18 +50,18 @@ export const yun = unwrap(y); // $ExpectType { kind: "a"; a: 3; } export const yone = unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})); ->yone : { kind: string; a: number; } ->unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})) : { kind: string; a: number; } +>yone : { kind: "a"; a: 3; } +>unwrap(sepsis({ low: 1, sign: { kind: 'a', a: 3 }})) : { kind: "a"; a: 3; } >unwrap : (w: Wrapper) => T ->sepsis({ low: 1, sign: { kind: 'a', a: 3 }}) : Wrapper<{ kind: string; a: number; }> +>sepsis({ low: 1, sign: { kind: 'a', a: 3 }}) : Wrapper<{ kind: "a"; a: 3; }> >sepsis : (opts: Opts) => Wrapper ->{ low: 1, sign: { kind: 'a', a: 3 }} : { low: number; sign: { kind: string; a: number; }; } +>{ low: 1, sign: { kind: 'a', a: 3 }} : { low: number; sign: { kind: "a"; a: 3; }; } >low : number >1 : 1 ->sign : { kind: string; a: number; } ->{ kind: 'a', a: 3 } : { kind: string; a: number; } ->kind : string +>sign : { kind: "a"; a: 3; } +>{ kind: 'a', a: 3 } : { kind: "a"; a: 3; } +>kind : "a" >'a' : "a" ->a : number +>a : 3 >3 : 3 From 6e201aa4c1e465b1a42fee22edaf592c2c2b2634 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 22 Nov 2026 07:10:47 -0800 Subject: [PATCH 5/6] Leave pure return type inference check unchanged --- tsc/internal/checker/inference.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsc/internal/checker/inference.go b/tsc/internal/checker/inference.go index ec3b957518375..8b0cc87aedef4 100644 --- a/tsc/internal/checker/inference.go +++ b/tsc/internal/checker/inference.go @@ -1395,11 +1395,11 @@ func (c *Checker) getInferredType(n *InferenceContext, index int) *Type { if constraint != nil { instantiatedConstraint := c.instantiateType(constraint, n.nonFixingMapper) // A pure return type inference is still filtered in a recursive call resolution, whose result can become the type of the enclosing declaration. - if inferredType != nil && (n.flags&InferenceFlagsNoConstraintChecks == 0 || inference.priority&InferencePriorityReturnType != 0) { + if inferredType != nil && (n.flags&InferenceFlagsNoConstraintChecks == 0 || inference.priority == InferencePriorityReturnType) { constraintWithThis := c.getTypeWithThisArgument(instantiatedConstraint, inferredType, false) if n.compareTypes(inferredType, constraintWithThis, false) == TernaryFalse { var filteredByConstraint *Type - if inference.priority&InferencePriorityReturnType != 0 { + if inference.priority == InferencePriorityReturnType { // If we have a pure return type inference, we may succeed by removing constituents of the inferred type // that aren't assignable to the constraint type (pure return type inferences are speculation anyway). filteredByConstraint = c.mapType(inferredType, func(t *Type) *Type { From 16417e9c7bcbe53b766b38848507f0786a4bcd5a Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 22 Nov 2026 08:34:49 -0800 Subject: [PATCH 6/6] Accept new baselines --- ...lassCheckOrder(checkorder=typesfirst).errors.txt | 13 +++---------- ...liedClassCheckOrder(checkorder=typesfirst).types | 4 ++-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt index 47ee86b9b2ffc..07c9bf3cefd3a 100644 --- a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).errors.txt @@ -1,7 +1,4 @@ -mixinMethodsReferringToAppliedClassCheckOrder.ts(31,7): error TS2417: Class static side 'typeof MixinApplied' incorrectly extends base class static side '{ prototype: (Anonymous function).Mixin2; } & { prototype: (Anonymous function).Mixin; }'. - Types of property 'prototype' are incompatible. - Type 'MixinApplied' is not assignable to type '(Anonymous function).Mixin2 & (Anonymous function).Mixin'. - Property 'bar' is missing in type 'MixinApplied' but required in type '(Anonymous function).Mixin2'. +mixinMethodsReferringToAppliedClassCheckOrder.ts(31,28): error TS2507: Type 'never' is not a constructor function type. ==== mixinMethodsReferringToAppliedClassCheckOrder.ts (1 errors) ==== @@ -36,10 +33,6 @@ mixinMethodsReferringToAppliedClassCheckOrder.ts(31,7): error TS2417: Class stat }) class MixinApplied extends Mixin2F(MixinF()) {} - ~~~~~~~~~~~~ -!!! error TS2417: Class static side 'typeof MixinApplied' incorrectly extends base class static side '{ prototype: (Anonymous function).Mixin2; } & { prototype: (Anonymous function).Mixin; }'. -!!! error TS2417: Types of property 'prototype' are incompatible. -!!! error TS2417: Type 'MixinApplied' is not assignable to type '(Anonymous function).Mixin2 & (Anonymous function).Mixin'. -!!! error TS2417: Property 'bar' is missing in type 'MixinApplied' but required in type '(Anonymous function).Mixin2'. -!!! related TS2728 mixinMethodsReferringToAppliedClassCheckOrder.ts:26:5: 'bar' is declared here. + ~~~~~~~~~~~~~~~~~ +!!! error TS2507: Type 'never' is not a constructor function type. \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types index 337a11c28ca64..e17df722dc992 100644 --- a/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types +++ b/tsc/testdata/baselines/reference/compiler/mixinMethodsReferringToAppliedClassCheckOrder(checkorder=typesfirst).types @@ -83,8 +83,8 @@ const Mixin2F = makeMixin(>(Base: TBase) => { class MixinApplied extends Mixin2F(MixinF()) {} >MixinApplied : MixinApplied ->Mixin2F(MixinF()) : ((abstract new (...args: any[]) => (Anonymous function).Mixin2) & { prototype: (Anonymous function).Mixin2; }) & ((abstract new (...args: any[]) => (Anonymous function).Mixin) & { prototype: (Anonymous function).Mixin; }) & ConstructorType +>Mixin2F(MixinF()) : never >Mixin2F : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin2) & { prototype: (Anonymous function).Mixin2; }) & TBase ->MixinF() : ((abstract new (...args: any[]) => (Anonymous function).Mixin) & { prototype: (Anonymous function).Mixin; }) & ConstructorType +>MixinF() : never >MixinF : >(Base?: TBase | undefined) => ((abstract new (...args: any[]) => Mixin) & { prototype: (Anonymous function).Mixin; }) & TBase