Skip to content

Commit 309b1cf

Browse files
Drop handleRecursive from MatchType#tryNormalize
There is already a `handleRecursive` in `reduced` Having the two makes error messages undeterministic, see #20269
1 parent 4fbba66 commit 309b1cf

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
@@ -5158,11 +5158,7 @@ object Types extends TypeUtils {
51585158
private var reductionContext: util.MutableMap[Type, Type] | Null = null
51595159

51605160
override def tryNormalize(using Context): Type =
5161-
try
5162-
reduced.normalized
5163-
catch
5164-
case ex: Throwable =>
5165-
handleRecursive("normalizing", s"${scrutinee.show} match ..." , ex)
5161+
reduced.normalized
51665162

51675163
private def thisMatchType = this
51685164

0 commit comments

Comments
 (0)