Skip to content

Instantly share code, notes, and snippets.

@btipling
Created January 27, 2015 18:14
Show Gist options
  • Save btipling/93a648cec290ba9796c2 to your computer and use it in GitHub Desktop.
Save btipling/93a648cec290ba9796c2 to your computer and use it in GitHub Desktop.
func wut () {
let bar = "nope"
{() -> () in
var foo = "nope"
println(foo)
}()
}
wut()
@mattneub
Copy link

Change to let bar = "nope"; and all is well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment