We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attachment: Download
![](https://raw.githubusercontent.com/SafelySwift/images/master/Screen%20Shot%202019-01-26%20at%204.31.20%20PM.png)
md5: 795ff7ff2b7dd30d73ddefbcd99f8fd5
Issue Description:
As per this Swift Forums topic, the following code should trap due to overlapping read/write access.
var stepSize = 1 func increment(_ number: inout Int) { number += stepSize } increment(&stepSize)
As specified on the docs,
> The read and write accesses refer to the same memory and they overlap, producing a conflict.
However, I put the code in a playground like such:
![](https://github.com/SafelySwift/images/blob/master/Screen%20Shot%202019-01-26%20at%204.30.06%20PM.png)
And nothing happens
The text was updated successfully, but these errors were encountered:
cc cwakamo (JIRA User), @atrick
Sorry, something went wrong.
This is indeed a known bug in Xcode playgrounds.
No branches or pull requests
Attachment: Download
Environment
![](https://raw.githubusercontent.com/SafelySwift/images/master/Screen%20Shot%202019-01-26%20at%204.31.20%20PM.png)
Additional Detail from JIRA
md5: 795ff7ff2b7dd30d73ddefbcd99f8fd5
Issue Description:
As per this Swift Forums topic, the following code should trap due to overlapping read/write access.
As specified on the docs,
> The read and write accesses refer to the same memory and they overlap, producing a conflict.
However, I put the code in a playground like such:
![](https://github.com/SafelySwift/images/blob/master/Screen%20Shot%202019-01-26%20at%204.30.06%20PM.png)
And nothing happens
The text was updated successfully, but these errors were encountered: