We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bca302 commit 14ce6c8Copy full SHA for 14ce6c8
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -428,7 +428,7 @@ object SymDenotations {
428
429
/** Does this symbol denote the primary constructor of its enclosing class? */
430
final def isPrimaryConstructor(implicit ctx: Context) =
431
- isConstructor && owner.primaryConstructor == this
+ isConstructor && owner.primaryConstructor.denot == this
432
433
/** Is this a subclass of the given class `base`? */
434
def isSubClass(base: Symbol)(implicit ctx: Context) = false
0 commit comments