Skip to content

Commit

Permalink
Don't treat package object's <init> methods as package members
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Dec 30, 2019
1 parent 53a6098 commit b848c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/SymDenotations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2205,7 +2205,7 @@ object SymDenotations {

if (symbol `eq` defn.ScalaPackageClass) {
val denots = super.computeNPMembersNamed(name)
if (denots.exists) denots
if (denots.exists || name == nme.CONSTRUCTOR) denots
else recur(packageObjs, NoDenotation)
}
else recur(packageObjs, NoDenotation)
Expand Down

0 comments on commit b848c57

Please sign in to comment.