Closed
Description
It says on the cheatsheet that
class C(x: R)
is the same asclass C(private val x: R)
which is not true.
In this case (class C(x: R)
), x is just a parameter that the constructor can receive and is only a local variable inside the constructor and not a member of the class.
there is discussion on that apparently abandoned PR about an appropriate fix