title: Is it possible to simplify this scala match statement using @ syntax?
body: <p>Is it possible to simplify the following <code>match</code> statement using <code>@</code> syntax?</p>
  
  <pre><code>foo match {
    case f: Foo =&gt; y(f)
    case f if forceY =&gt; y(f)
    case _ =&gt; x
  }
  </code></pre>
  
  <p>where <code>forceY</code> is a <code>boolean</code>. </p>
  
  <p>I've tried the following but getting compile errors and it does look like possibly questionable syntax for the compiler to interpret. Perhaps this is impossible to express?</p>
  
  <pre><code>foo match {
    case f @(_: Foo | _ if forceY) =&gt; y(f)
    case _ =&gt; x
  }
  </code></pre>