Created
December 19, 2014 18:37
-
-
Save michaeleisel/d545c3c8a2278cbc97b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Controller { | |
var defaultDate: NSDate { return NSDate() } | |
var currentDate: NSDate | |
func init() { | |
currentDate = defaultDate // causes error, because self doesn't exist yet | |
super.init() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment