File tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/typer
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
339
339
* or a TermRef to a singleton value. These are
340
340
* the base elements required to generate a mirror.
341
341
*/
342
- def reduce (mirroredType : Type )(using Context ): Either [String , MirrorSource ] = mirroredType.normalized match
342
+ def reduce (mirroredType : Type )(using Context ): Either [String , MirrorSource ] = mirroredType match
343
343
case tp : TypeRef =>
344
344
val sym = tp.symbol
345
345
if sym.isClass then // direct ref to a class, not an alias
@@ -379,6 +379,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
379
379
// avoid type aliases for tuples
380
380
Right (MirrorSource .GenericTuple (types))
381
381
case _ => reduce(tp.underlying)
382
+ case tp : MatchType => reduce(tp.normalized)
382
383
case _ => reduce(tp.superType)
383
384
case tp @ AndType (l, r) =>
384
385
for
You can’t perform that action at this time.
0 commit comments