Created
May 31, 2018 23:35
-
-
Save gottesmm/738df5a7d5ef207012091c363217ead3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func foo() { | |
var x: (Int, Int) | |
x.0 = 0 | |
print(x.0) // <--- This works | |
let capture = { | |
print(x.0) // <--- This doesn't | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment