How to apply the type to a NSFetchRequest instance?
<p>In Swift 2 the following code was working:</p>

<pre><code>let request = NSFetchRequest(entityName: String)
</code></pre>

<p>but in Swift 3 it gives error:</p>

<blockquote>
  <p>Generic parameter "ResultType" could not be inferred</p>
</blockquote>

<p>because <code>NSFetchRequest</code> is now a generic type. In their documents they wrote this:</p>

<pre><code>let request: NSFetchRequest&lt;Animal&gt; = Animal.fetchRequest
</code></pre>

<p>so if my result class is for example <code>Level</code> how should I request correctly?</p>

<p>Because this not working:</p>

<pre><code>let request: NSFetchRequest&lt;Level&gt; = Level.fetchRequest
</code></pre>