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
value print is not a member of Display[A].
An extension method was tried, but could not be fully constructed:
DisplaySyntax.print[Display[A]](p)(
/* missing */ summon[Display[Display[A]]])
failed with:
No given instance of type Display[Display[A]] was found for parameter p of method print in object DisplaySyntax
This makes sense because the trait Display only has one method, display. print is defined in the Display companion object, and can only be called as Display.print(value).
The text was updated successfully, but these errors were encountered:
Section 4.5.2 Better Syntax
Fails to compile.
This makes sense because the trait
Display
only has one method,display
.print
is defined in theDisplay
companion object, and can only be called asDisplay.print(value)
.The text was updated successfully, but these errors were encountered: