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
scala>classIntW(implicitvaln:Int) extendsAnyVal
<console>:11:error: value classneeds to have exactly one valparameterclassIntW(implicitvaln:Int) extendsAnyVal^
Seems you can't define a value class's value as implicit:
The use of Int here as an implicit class is just for reproduction purpose, it wouldn't be wise to do so.
The current workaround is to drop the implicit and define an implicit method:
The text was updated successfully, but these errors were encountered: