title: Contextual type 'AnyObject' cannot be used with dictionary literal?
body: <p>I am in the process of trying to convert an Objective-C example to Swift 2, but I am running into a small issue. The original Objective-C snippet:</p>
  
  <pre><code>NSMutableArray *inputsOutputs = [NSMutableArray array];
  ...
  [inputsOutputs addObject:@{@"input" : input, @"output" : trackOutput}];
  </code></pre>
  
  <p>and what I thought the Swift code should be:</p>
  
  <pre><code>var inputsOutputs = [Any?]()
  ...
  inputsOutputs.append([ "input": input, "output": trackOutput ])
  </code></pre>
  
  <p>The resultant error is:</p>
  
  <pre><code>Contextual type 'AnyObject' cannot be used with dictionary literal?
  </code></pre>
  
  <p>How would I convert the Objective-C in this case to Swift?</p>
  
  <p>Original Objective-C: <a href="https://developer.apple.com/library/mac/samplecode/avsubtitleswriterOSX/Listings/avsubtitleswriter_main_m.html" rel="noreferrer">https://developer.apple.com/library/mac/samplecode/avsubtitleswriterOSX/Listings/avsubtitleswriter_main_m.html</a></p>