Skip to content

Instantly share code, notes, and snippets.

@owensd

owensd/access.swift Secret

Last active Apr 18, 2017
Embed
What would you like to do?
struct A {
private var foo: Int = 10
}
extension A {
func bar() -> Int {
return self.foo // this will work after #169
}
}
class C {
private var foo: Int = 10
}
class D: C {
func bar() -> Int {
return self.foo. // this will be a compiler error after #169 still
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment