diff options
Diffstat (limited to 'tests/examplefiles/objc_example.m')
-rw-r--r-- | tests/examplefiles/objc_example.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/examplefiles/objc_example.m b/tests/examplefiles/objc_example.m index cb5c0975..f4f27170 100644 --- a/tests/examplefiles/objc_example.m +++ b/tests/examplefiles/objc_example.m @@ -23,3 +23,13 @@ for (key in dictionary) { NSLog(@"English: %@, Latin: %@", key, [dictionary valueForKey:key]); } +// Literals +NSArray *a = @[ @"1", @"2" ]; + +NSDictionary *d = @{ @"key": @"value" }; + +NSNumber *n1 = @( 1 ); +NSNumber *n2 = @( [a length] ); + ++ (void)f1:(NSString *)s1; ++ (void)f2:(NSString *) s2; |