Skip to content

Commit 7d7e35e

Browse files
committed
Recursively drop IgnoredProto parts
When doping a deepenProto, strip all levels of IgnoredProto, not just one.
1 parent 6800e09 commit 7d7e35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ object ProtoTypes {
107107
/** A class marking ignored prototypes that can be revealed by `deepenProto` */
108108
case class IgnoredProto(ignored: Type) extends UncachedGroundType with MatchAlways {
109109
override def revealIgnored = ignored.revealIgnored
110-
override def deepenProto(implicit ctx: Context): Type = ignored
110+
override def deepenProto(implicit ctx: Context): Type = ignored.deepenProto
111111
}
112112

113113
/** A prototype for expressions [] that are part of a selection operation:

0 commit comments

Comments
 (0)