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
Redeclaring a variable which is already bound by a guard statement does not cause a compiler error when done on the file level. The following compiles and runs without errors or warnings:
Additional Detail from JIRA
md5: 6d550c1e961ae017ab560cbb576d283c
Issue Description:
Redeclaring a variable which is already bound by a guard statement does not cause a compiler error when done on the file level. The following compiles and runs without errors or warnings:
It looks as if the statement `let number = 5678` is completely ignored.
The problem only occurs with code on the file level. Doing the same inside a function causes a compiler error, as expected.
Tested with
Xcode 7.3.1, "Default" and "Snapshot 2016-06-06 (a)" toolchain
Xcode 8 beta.
The text was updated successfully, but these errors were encountered: