Last active
August 29, 2015 14:22
-
-
Save BradB132/bcd2bdd0879965c81fd5 to your computer and use it in GitHub Desktop.
SwiftTricks-3
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
//NOTE: obj.setString() returns Void | |
//don't do this | |
let block1:(Void->Void) = { | |
obj.setString("myString") //this causes a build error | |
} | |
//do this instead | |
let block2:(Void->Void) = { | |
obj.setString("myString") | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment