Skip to content

Commit 3fc5826

Browse files
Drop handleRecursive from MatchType#tryNormalize
There is already a `handleRecursive` in `reduced` Having the two makes error messages undeterministic, see scala#20269
1 parent bb73049 commit 3fc5826

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5086,11 +5086,7 @@ object Types extends TypeUtils {
50865086
private var reductionContext: util.MutableMap[Type, Type] | Null = null
50875087

50885088
override def tryNormalize(using Context): Type =
5089-
try
5090-
reduced.normalized
5091-
catch
5092-
case ex: Throwable =>
5093-
handleRecursive("normalizing", s"${scrutinee.show} match ..." , ex)
5089+
reduced.normalized
50945090

50955091
private def thisMatchType = this
50965092

0 commit comments

Comments
 (0)