Created
November 5, 2018 10:54
-
-
Save serkodev/7243e212a9e61db41734f03fdfd24fc3 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
| BOOL foo = YES; | |
| id a = @(foo); | |
| //className: __NSCFBoolean | |
| id b = @(YES); | |
| //className: __NSCFBoolean | |
| id c = foo ? @(YES) : @(NO); | |
| //className: __NSCFBoolean | |
| id d = @(foo ? YES : NO); | |
| //className: __NSCFNumber | |
| id e = @(foo ? (BOOL)YES : (BOOL)NO); | |
| //className: __NSCFNumber |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment