Skip to content

Commit de16b01

Browse files
committed
Add Artifact to SpecialPolyClass constructor and use in Completion
1 parent 3aebfab commit de16b01

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Definitions {
8080
denot.info = ClassInfo(ScalaPackageClass.thisType, cls, parents, paramDecls)
8181
}
8282
}
83-
newClassSymbol(ScalaPackageClass, name, EmptyFlags, completer).entered
83+
newClassSymbol(ScalaPackageClass, name, Artifact, completer).entered
8484
}
8585

8686
/** The trait FunctionN, ImplicitFunctionN, ErasedFunctionN or ErasedImplicitFunction, for some N

compiler/src/dotty/tools/dotc/interactive/Completion.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,7 @@ object Completion {
254254
|| (mode.is(Mode.Type) && (sym.isType || sym.isStable))
255255
) &&
256256
!sym.isPackageObject &&
257-
(sym ne defn.RepeatedParamClass) &&
258-
(sym ne defn.ByNameParamClass2x) &&
259-
(sym ne defn.EqualsPatternClass)
257+
!sym.is(Artifact)
260258

261259
/**
262260
* Find all the members of `site` that are accessible and which should be included in `info`.

0 commit comments

Comments
 (0)