Created
October 13, 2016 17:42
-
-
Save mafellows/f79d81a87b99417b8e0db3c26b261fde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generates a compiler error | |
foos.forEach { foo in | |
guard let bar = foo else { continue } | |
print(bar) | |
} | |
// Works fine. | |
for foo in foos { | |
guard let bar = foo else { continue } | |
print(bar) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment