Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-4818] We have masking shift-assignment operators, but not other masking assignment operators #47395

Closed
dabrahams opened this issue May 6, 2017 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@dabrahams
Copy link
Collaborator

Previous ID SR-4818
Radar rdar://problem/32035586
Original Reporter @dabrahams
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee rockbruno (JIRA)
Priority Medium

md5: 4c0dbf90f8b9eddf6e613c8116792360

Issue Description:

(swift) x &<<= 3 // OK
(swift) var x = 88
x// x : Int = 88
(swift) x &-= 3
<REPL Input>:1:3: error: use of unresolved operator '&-='
x &-= 3
  ^~~
Swift.&=:8:13: note: did you mean '&='?
public func &=<T>(lhs: inout T, rhs: T) where T : _BitwiseOperations
            ^

This is inconsistent and should be fixed.

@dabrahams
Copy link
Collaborator Author

@swift-ci create

@swift-ci
Copy link
Collaborator

Comment by Bruno Rocha (JIRA)

#15144

@swift-ci
Copy link
Collaborator

Comment by Bruno Rocha (JIRA)

Merged.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

2 participants