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
Thank you for this bug. The problem is that "dynamic" enforcement is not yet supported in playgrounds.
In the example above, although it's obvious to the author, the exclusivity violation isn't obvious to the compiler. `stepSize` looks like a global and `increment` is separately compiled without knowing that stepSize is also the argument. If the whole example were wrapped in another function, we would still have the same problem because `stepSize` would be captured by a closure context before that context is passed to `increment`.
At any rate, swift currently only diagnoses this violation at runtime, which means Playgrounds doesn't catch it.
Attachment: Download
Environment
Version 10.0 beta (10L176w)
Additional Detail from JIRA
md5: 27914d317978b2419080e4cf9a364d33
Issue Description:
Does not produce any error at all, be it compile- or run-time.
The text was updated successfully, but these errors were encountered: