Created
August 3, 2014 17:10
-
-
Save alexkent/1faaac7a628685a03358 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
import Foundation | |
class foo { | |
var bar:String! | |
func print() { | |
println("some stuff and \(self.bar)") | |
} | |
} | |
let aFoo = foo() | |
//aFoo.bar = "banana" | |
aFoo.print() | |
// | |
// 'some stuff and nil' is printed | |
// | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment