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
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
object Access:
opaque type Permissions = Int
opaque type PermissionChoice = Int
opaque type Permission <: Permissions & PermissionChoice = Int
extension (x: Permissions)
def & (y: Permissions): Permissions = x | y
extension (x: PermissionChoice)
def | (y: PermissionChoice): PermissionChoice = x | y
Seems to be wrong in that the & and the |both are doing x | y in the body.
I suspect that the first one should actually be x & y like this.
def & (y: Permissions): Permissions = x & y
The text was updated successfully, but these errors were encountered:
In the section on
Bounds For Opaque Type Aliases
The example code block
Seems to be wrong in that the
&
and the|
both are doingx | y
in the body.I suspect that the first one should actually be
x & y
like this.The text was updated successfully, but these errors were encountered: