Skip to content

Commit

Permalink
Drop handleRecursive from MatchType#tryNormalize
Browse files Browse the repository at this point in the history
There is already a `handleRecursive` in `reduced`
Having the two makes error messages undeterministic, see scala#20269
  • Loading branch information
EugeneFlesselle committed Jun 28, 2024
1 parent 4fbba66 commit 309b1cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions compiler/src/dotty/tools/dotc/core/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5158,11 +5158,7 @@ object Types extends TypeUtils {
private var reductionContext: util.MutableMap[Type, Type] | Null = null

override def tryNormalize(using Context): Type =
try
reduced.normalized
catch
case ex: Throwable =>
handleRecursive("normalizing", s"${scrutinee.show} match ..." , ex)
reduced.normalized

private def thisMatchType = this

Expand Down

0 comments on commit 309b1cf

Please sign in to comment.