We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b98ce commit 56e5404Copy full SHA for 56e5404
compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
@@ -133,9 +133,9 @@ object ProtoTypes {
133
final class CachedIgnoredProto(ignored: Type) extends IgnoredProto(ignored)
134
135
object IgnoredProto:
136
- def apply(ignored: Type): IgnoredProto = ignored match
+ def apply(ignored: Type)(using Context): IgnoredProto = ignored match
137
case ignored: IgnoredProto => ignored
138
- case _ => CachedIgnoredProto(ignored)
+ case _ => unique(CachedIgnoredProto(ignored))
139
140
/** A prototype for expressions [] that are part of a selection operation:
141
*
0 commit comments