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 @@ -338,7 +338,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
338
338
* or a TermRef to a singleton value. These are
339
339
* the base elements required to generate a mirror.
340
340
*/
341
- def reduce (mirroredType : Type )(using Context ): Either [String , MirrorSource ] = mirroredType.normalized match
341
+ def reduce (mirroredType : Type )(using Context ): Either [String , MirrorSource ] = mirroredType match
342
342
case tp : TypeRef =>
343
343
val sym = tp.symbol
344
344
if sym.isClass then // direct ref to a class, not an alias
@@ -378,6 +378,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
378
378
// avoid type aliases for tuples
379
379
Right (MirrorSource .GenericTuple (types))
380
380
case _ => reduce(tp.underlying)
381
+ case tp : MatchType => reduce(tp.normalized)
381
382
case _ => reduce(tp.superType)
382
383
case tp @ AndType (l, r) =>
383
384
for
You can’t perform that action at this time.
0 commit comments