Skip to content

Commit

Permalink
Remove outdated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneFlesselle committed Apr 26, 2024
1 parent 3069215 commit 49ddc83
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 @@ -4641,10 +4641,6 @@ object Types extends TypeUtils {
case nil => x
foldArgs(op(x, tycon), args)

/** Exists if the tycon is a TypeRef of an alias with an underlying match type.
* Anything else should have already been reduced in `appliedTo` by the TypeAssigner.
* May reduce several HKTypeLambda applications before the underlying MatchType is reached.
*/
override def underlyingNormalizable(using Context): Type =
if ctx.period != validUnderlyingNormalizable then
validUnderlyingNormalizable = if tycon.isProvisional then Nowhere else ctx.period
Expand All @@ -4654,7 +4650,7 @@ object Types extends TypeUtils {
cachedUnderlyingNormalizable

override def tryNormalize(using Context): Type =
if MatchTypeTrace.isRecording && isMatchAlias then
if isMatchAlias && MatchTypeTrace.isRecording then
MatchTypeTrace.recurseWith(this)(superType.tryNormalize)
else super.tryNormalize

Expand Down

0 comments on commit 49ddc83

Please sign in to comment.