Skip to content

Instantly share code, notes, and snippets.

@isaac-weisberg
Last active November 11, 2018 01:28
Show Gist options
  • Save isaac-weisberg/11463acb158f7b9adc2df8c4da492e0c to your computer and use it in GitHub Desktop.
Save isaac-weisberg/11463acb158f7b9adc2df8c4da492e0c to your computer and use it in GitHub Desktop.
func foo() -> Any {
class Bar {
let baz: Int
init(_ value: Int) {
baz = value
}
}
let bar = Bar(3)
return bar
}
let val = foo()
// Although, one can not
// let baz = foo.baz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment