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.
2 parents 0f1d350 + 15b90b1 commit 25b0743Copy full SHA for 25b0743
compiler/src/dotty/tools/dotc/transform/HoistSuperArgs.scala
@@ -67,7 +67,7 @@ class HoistSuperArgs extends MiniPhase with IdentityDenotTransformer { thisPhase
67
val constr = cdef.symbol
68
lazy val origParams = // The parameters that can be accessed in the supercall
69
if (constr == cls.primaryConstructor)
70
- cls.info.decls.filter(d => d.is(TypeParam) || d.is(ParamAccessor))
+ cls.info.decls.filter(d => d.is(TypeParam) || d.is(ParamAccessor) && !d.isSetter)
71
else
72
allParamSyms(cdef)
73
tests/pos/i11045.scala
@@ -0,0 +1,2 @@
1
+abstract class Foo(x: Any)
2
+class Boom(var x: Unit, y: Unit) extends Foo((x: Int) => x)
0 commit comments