Skip to content

Instantly share code, notes, and snippets.

@iamvery
Created June 30, 2014 16:11
Show Gist options
  • Save iamvery/0d8b7499d480479e7b94 to your computer and use it in GitHub Desktop.
Save iamvery/0d8b7499d480479e7b94 to your computer and use it in GitHub Desktop.
class Bar {}
class Baz {
init(str: String!) {
println(str)
}
}
class Foo: Bar {
let bar: String!
init() {
println(self.bar)
Baz(str: self.bar)
super.init()
println(self.bar)
//println(self.bar.uppercaseString) // :boom:
println("Look, Ma! No boom!")
bar = "thing"
}
}
println(Foo().bar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment