File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -379,7 +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
+ case tp : MatchType => reduce(tp.tryNormalize.orElse(tp.superType) )
383
383
case _ => reduce(tp.superType)
384
384
case tp @ AndType (l, r) =>
385
385
for
Original file line number Diff line number Diff line change
1
+ import deriving .Mirror
2
+ import compiletime .summonInline
3
+
4
+ type DoesNotReduce [T ] = T match
5
+ case String => Any
6
+
7
+ class Foo
8
+ @ main def Test : Unit =
9
+ summonInline[Mirror .Of [DoesNotReduce [Option [Int ]]]] // error
You can’t perform that action at this time.
0 commit comments