Skip to content

Instantly share code, notes, and snippets.

@Lukasa
Created April 30, 2020 12:21
Show Gist options
  • Save Lukasa/a659f63e7a6903d6c4a07407cb3c98d7 to your computer and use it in GitHub Desktop.
Save Lukasa/a659f63e7a6903d6c4a07407cb3c98d7 to your computer and use it in GitHub Desktop.
func x(_ body: () -> String)
func x(_ body: () -> Int)
func main() {
// do some stuff
x {
6 + "cabbages" // error is here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment