Created
June 8, 2014 19:32
-
-
Save teancom/f34de64dedd58e76a95a 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
let foo:Bool = true | |
switch foo { | |
case true: | |
println("got here") | |
case false: | |
println("won't get here") | |
case foo == nil: | |
println("am I exhaustive now?") | |
default: | |
println("grr") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deleting the default case results in an error (in my playground, at least)