title: Objective-C generics not working for methods? (Xcode 7 Beta (build: 7A120f))
body: <p>So, obviously, after WWDC I'm playing with new stuff presented during last week. As you know Apple introduced generics to the world of Objective-C</p>
  
  <blockquote>
    <p>Note: This answer is somehow follow-up to this question:
    <a href="https://stackoverflow.com/questions/848641/are-there-strongly-typed-collections-in-objective-c">Are there strongly-typed collections in Objective-C?</a></p>
  </blockquote>
  
  <p>I tried this code in method, works great</p>
  
  <pre><code>NSMutableArray&lt;NSString*&gt; *array = [[NSMutableArray alloc] init];
  
  [array addObject:@""];
  [array addObject:@(54)];Incompatible pointer types sending 'NSNumber *' to parameter of type 'NSString * __nonnull'
  // Great, generics works as expected.
  </code></pre>
  
  <p>However I also have method I want to transform to generics</p>
  
  <p>In header file:</p>
  
  <pre><code>- (NSArray &lt;NSString*&gt; *)objectsToSearch;
  </code></pre>
  
  <p>Implementation:</p>
  
  <pre><code>- (NSArray &lt;NSString*&gt; *)objectsToSearch
  {
      NSString *first = @"1";
  
      NSString *second = @"2";
  
      NSString *third = @"3";
  
      NSNumber *test = @(55);
  
      return @[first, second, third, test]; // No-error!!!
  }
  </code></pre>
  
  <p>Am I doing something wrong or Clang does not support generics + literals or there is something else I'm missing?</p>