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
Don't know if this qualifies as opaque enough, and I also don't know if there is something you can do about it. Anyway, sometimes I forget the "def" when writing an auxiliary constructor:
scala>classEg(name: String) {
|this() =this("DEFAULT")
| }
<console>:8:error: value update is not a member of Egthis() =this("DEFAULT")
^
(I now immediately recognise the problem and simply add the missing "def", but the first few times, I found the error message a tiny bit cryptic.)
Don't know if this qualifies as opaque enough, and I also don't know if there is something you can do about it. Anyway, sometimes I forget the "def" when writing an auxiliary constructor:
(I now immediately recognise the problem and simply add the missing "def", but the first few times, I found the error message a tiny bit cryptic.)
/////////////////////////////////////////
Created from nikolaj lindberg comment on https://issues.scala-lang.org/browse/SI-3092?focusedCommentId=48911&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-48911
The text was updated successfully, but these errors were encountered: