We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f56089b commit b5fae8fCopy full SHA for b5fae8f
compiler/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -2515,7 +2515,7 @@ object SymDenotations {
2515
multi.filterWithPredicate(_.symbol.associatedFile == chosen)
2516
end dropStale
2517
2518
- if symbol eq defn.ScalaPackageClass then
+ if (symbol eq defn.ScalaPackageClass) || name == nme.CONSTRUCTOR then
2519
val denots = super.computeMembersNamed(name)
2520
if denots.exists || name == nme.CONSTRUCTOR then denots
2521
else recur(packageObjs, NoDenotation)
0 commit comments