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 possible to use symbolic type names, then use them in infix position, however this doesn't work for *. Maybe there's a good reason for this, but I can't think what it is.
scala>type+[A, B] = (A, B)
defined typealias $plus
scala>type*[A, B] = (A, B)
defined typealias $times
scala>typeX[A, B] =A+B
defined typealiasX
scala>typeY[A, B] =A*B
<console>:1:error: ';' expected but identifier found.
typeY[A, B] =A*B
^
The text was updated successfully, but these errors were encountered:
It's possible to use symbolic type names, then use them in infix position, however this doesn't work for
*
. Maybe there's a good reason for this, but I can't think what it is.The text was updated successfully, but these errors were encountered: