Compiler Error: "error CS0307: The variable 'int' cannot be used with type arguments"
<p>If I have the following code:</p>

<pre><code>private void Check(bool a, bool b)
{
}

private void Check(int a, int b, int c, bool flag)
{
    Check(a &lt; b, a &gt; (flag ? c : b - 10));
}
</code></pre>

<p>I get a compile-time error on the call to <code>Check(int, int)</code>:</p>

<blockquote>
  <p>error CS0307: The variable 'int' cannot be used with type arguments</p>
</blockquote>

<p>I also get these errors:</p>

<blockquote>
  <p>error CS0118: 'b' is a variable but is used like a type<br/>
  error CS0118: 'a' is a variable but is used like a type</p>
</blockquote>

<p>Why do these errors occur? What is wrong with the code?</p>