Last active
June 24, 2016 10:33
-
-
Save pushkarnk/ff87d9970d7a8256b5bc716a73f479f6 to your computer and use it in GitHub Desktop.
Swifty Encounter[1]
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 | |
public class Test : NSObject { | |
public init?(x: Bool) { | |
guard x == true else { return nil } | |
} | |
public override var description: String { | |
return "test" | |
} | |
} | |
print(Test(x: true)) | |
print(Test(x: false)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment