Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexkent/1faaac7a628685a03358 to your computer and use it in GitHub Desktop.
Save alexkent/1faaac7a628685a03358 to your computer and use it in GitHub Desktop.
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