Created
June 30, 2014 16:11
-
-
Save iamvery/0d8b7499d480479e7b94 to your computer and use it in GitHub Desktop.
This file contains 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
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