Skip to content

Commit 14ce6c8

Browse files
committed
Fix SymDenotation.isPrimaryConstructor
.denot was missing
1 parent 3bca302 commit 14ce6c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

429429
/** Does this symbol denote the primary constructor of its enclosing class? */
430430
final def isPrimaryConstructor(implicit ctx: Context) =
431-
isConstructor && owner.primaryConstructor == this
431+
isConstructor && owner.primaryConstructor.denot == this
432432

433433
/** Is this a subclass of the given class `base`? */
434434
def isSubClass(base: Symbol)(implicit ctx: Context) = false

0 commit comments

Comments
 (0)