Skip to content

Instantly share code, notes, and snippets.

@owensd
Last active April 18, 2017 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owensd/5a3e24b8daf6304ba233545abafde46d to your computer and use it in GitHub Desktop.
Save owensd/5a3e24b8daf6304ba233545abafde46d to your computer and use it in GitHub Desktop.
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