Created
April 27, 2016 02:03
-
-
Save bricklife/0824744da0608b8a40e0d291d8e9b78c to your computer and use it in GitHub Desktop.
Swift 2.2の型推論、これくらいはがんばってほしいなぁ #CodePiece
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 OK = { | |
"Test" | |
} | |
let NG = { | |
let s = "Test" | |
return s | |
} | |
// error: unable to infer closure return type in current context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment