Skip to content

Commit b848c57

Browse files
committed
Don't treat package object's <init> methods as package members
1 parent 53a6098 commit b848c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,7 @@ object SymDenotations {
22052205

22062206
if (symbol `eq` defn.ScalaPackageClass) {
22072207
val denots = super.computeNPMembersNamed(name)
2208-
if (denots.exists) denots
2208+
if (denots.exists || name == nme.CONSTRUCTOR) denots
22092209
else recur(packageObjs, NoDenotation)
22102210
}
22112211
else recur(packageObjs, NoDenotation)

0 commit comments

Comments
 (0)