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's not obvious that keyword implicit means "implicit parameter list" when it is not the first token in a parameter list.
This matters for class parameters, which may have other modifiers.
scala>classC(protectedimplicitvals:String, i: Int)
defined classC
scala>implicitvalz="hello"
z:String= hello
scala>newC()
<console>:13:error: could not find implicit value for parameter i: IntnewC()
^
It's not obvious that keyword
implicit
means "implicit parameter list" when it is not the first token in a parameter list.This matters for class parameters, which may have other modifiers.
"What does 'override implicit' mean?" is a good ice breaker for a job interview.
The text was updated successfully, but these errors were encountered: