Skip to content

Commit

Permalink
Keep validUnderlyingMatch inline with validSuper
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneFlesselle committed Jun 6, 2024
1 parent eaa673d commit ee54814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/Types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4677,8 +4677,8 @@ object Types extends TypeUtils {
*/
override def underlyingMatchType(using Context): Type =
if ctx.period != validUnderlyingMatch then
validUnderlyingMatch = if tycon.isProvisional then Nowhere else ctx.period
cachedUnderlyingMatch = superType.underlyingMatchType
validUnderlyingMatch = validSuper
cachedUnderlyingMatch

override def tryNormalize(using Context): Type = tycon.stripTypeVar match {
Expand Down

0 comments on commit ee54814

Please sign in to comment.