Skip to content

Commit ee54814

Browse files
Keep validUnderlyingMatch inline with validSuper
1 parent eaa673d commit ee54814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4677,8 +4677,8 @@ object Types extends TypeUtils {
46774677
*/
46784678
override def underlyingMatchType(using Context): Type =
46794679
if ctx.period != validUnderlyingMatch then
4680-
validUnderlyingMatch = if tycon.isProvisional then Nowhere else ctx.period
46814680
cachedUnderlyingMatch = superType.underlyingMatchType
4681+
validUnderlyingMatch = validSuper
46824682
cachedUnderlyingMatch
46834683

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

0 commit comments

Comments
 (0)