File tree 1 file changed +7
-3
lines changed
compiler/src/dotty/tools/dotc/typer 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,14 @@ object ProtoTypes {
113
113
}
114
114
115
115
/** A class marking ignored prototypes that can be revealed by `deepenProto` */
116
- case class IgnoredProto (ignored : Type ) extends UncachedGroundType with MatchAlways {
117
- override def revealIgnored = ignored.revealIgnored
116
+ case class IgnoredProto (ignored : Type ) extends UncachedGroundType with MatchAlways with
117
+ override def revealIgnored = ignored
118
118
override def deepenProto (implicit ctx : Context ): Type = ignored
119
- }
119
+
120
+ object IgnoredProto with
121
+ def apply (ignored : Type ): IgnoredProto = ignored match
122
+ case ignored : IgnoredProto => ignored
123
+ case _ => new IgnoredProto (ignored)
120
124
121
125
/** A prototype for expressions [] that are part of a selection operation:
122
126
*
You can’t perform that action at this time.
0 commit comments