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 afecfad commit 6b28f0dCopy full SHA for 6b28f0d
compiler/src/dotty/tools/dotc/semanticdb/Scala3.scala
@@ -47,7 +47,8 @@ object Scala3:
47
// for secondary constructors `this`
48
desig match
49
case sym: Symbol =>
50
- if sym.isConstructor && nameInSource == nme.THISkw.toString then
+ if sym.isConstructor
51
+ && (sym.isPrimaryConstructor || nameInSource == nme.THISkw.toString) then
52
true
53
else
54
val target =
0 commit comments