Type of expression is ambiguous without more context (enum)
<p>A little problem with an <code>enum</code>.</p>

<pre><code>public enum LHActivityTypeID: String {
    case Run = "16"
    case Bike = "41"
}
</code></pre>

<p>Try to use it in an other file (yes my enum is global) : </p>

<pre><code>if (activity.activity_type?.id  == .Bike ) {
    self?.allItems.append(activity)
}
</code></pre>

<blockquote>
  <p>Error > Type of expression is ambiguous without more context</p>
</blockquote>

<p>I know that the <code>compiler</code> need more informations about the enum but i can't find how to do that, i've tried lot of thing et read some other post. Thank's for your help</p>