File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2515,9 +2515,12 @@ object SymDenotations {
25152515 multi.filterWithPredicate(_.symbol.associatedFile == chosen)
25162516 end dropStale
25172517
2518- if symbol eq defn.ScalaPackageClass then
2518+ if name == nme.CONSTRUCTOR then
2519+ NoDenotation // packages don't have constructors, even if package objects do.
2520+ else if symbol eq defn.ScalaPackageClass then
2521+ // revert order: search package first, then nested package objects
25192522 val denots = super .computeMembersNamed(name)
2520- if denots.exists || name == nme. CONSTRUCTOR then denots
2523+ if denots.exists then denots
25212524 else recur(packageObjs, NoDenotation )
25222525 else recur(packageObjs, NoDenotation )
25232526 end computeMembersNamed
You can’t perform that action at this time.
0 commit comments