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 a5eae5a commit 1510db9Copy full SHA for 1510db9
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -1632,7 +1632,7 @@ object SymDenotations {
1632
override def primaryConstructor(implicit ctx: Context): Symbol = {
1633
def constrNamed(cname: TermName) = info.decls.denotsNamed(cname).last.symbol
1634
// denotsNamed returns Symbols in reverse order of occurrence
1635
- if (this.is(ImplClass)) constrNamed(nme.TRAIT_CONSTRUCTOR)
+ if (this.is(ImplClass)) constrNamed(nme.TRAIT_CONSTRUCTOR) // ignore normal constructor
1636
else
1637
constrNamed(nme.CONSTRUCTOR).orElse(constrNamed(nme.TRAIT_CONSTRUCTOR))
1638
}
0 commit comments