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 c6a6d12 commit 39cb41aCopy full SHA for 39cb41a
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -432,7 +432,7 @@ object SymDenotations {
432
final def isSetter(implicit ctx: Context) =
433
(this is Accessor) &&
434
originalName.isSetterName &&
435
- info.firstParamTypes.nonEmpty // to avoid being fooled by var x_= : Unit = ...
+ (!isCompleted || info.firstParamTypes.nonEmpty) // to avoid being fooled by var x_= : Unit = ...
436
437
/** is this the constructor of a class? */
438
final def isClassConstructor = name == nme.CONSTRUCTOR
0 commit comments