Last active
April 28, 2018 21:12
-
-
Save soapyigu/8c7aefd0d6d7acc15e66031a80866bfa 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
int main(int argc, const char * argv[]) { | |
@autoreleasepool { | |
Queue<NSString *> *stringQueue = [[Queue alloc] init]; | |
[stringQueue enqueue:@"abc"] | |
Queue<NSNumber *> *numberQueue = [[Queue alloc] init]; | |
[numberQueue enqueue:@123]; | |
[numberQueue enqueue:@"abc"]; // Warning: Incompatible pointer types sending 'NSString *' to parameter of type 'NSNumber *' | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment