You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It says on the cheatsheet that class C(x: R) is the same as class 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