Skip to content

Commit 56e5404

Browse files
committed
Cache IgnoredProtos
1 parent 44b98ce commit 56e5404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ object ProtoTypes {
133133
final class CachedIgnoredProto(ignored: Type) extends IgnoredProto(ignored)
134134

135135
object IgnoredProto:
136-
def apply(ignored: Type): IgnoredProto = ignored match
136+
def apply(ignored: Type)(using Context): IgnoredProto = ignored match
137137
case ignored: IgnoredProto => ignored
138-
case _ => CachedIgnoredProto(ignored)
138+
case _ => unique(CachedIgnoredProto(ignored))
139139

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

0 commit comments

Comments
 (0)