title: Expressions are not allowed at the top level when creating a dictionary in Swift
body: <p>I am using Swift(Xcode 6 beta 6) and creating a dictionary like this which gives an error. I am not able to understand why it gives an error.</p>
  
  <pre><code>var PP = Dictionary&lt;String, Any&gt;()
  PP["defaultServerMode"] = "Production"  // This line give error(below)
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Expressions are not allowed at the top level
  </code></pre>