title: Pass null to a method expects Long
body: <p>I have a Scala method that takes 2 parameters:</p>
  
  <pre><code>def test(x:Long,y:Int){}
  </code></pre>
  
  <p>On some occasion I need to pass null instead of long ... something like that:</p>
  
  <pre><code>test(null,x)
  </code></pre>
  
  <p>The result:</p>
  
  <blockquote>
    <p>scala> test(null,2) :7: error: type mismatch;  found   :
    Null(null)  required: Long
           test(null,2)</p>
  </blockquote>
  
  <p>Why do I need to pass null?
  Actually ,for some reason,I can't pass any default values.
  Thus, I need such a null.</p>
  
  <p>*<em>Note:</em>*I know that the solution would be making it Option.
  However let's say I have no control over this method signature,can I do any work around?</p>
  
  <p>Any ideas!</p>
  
  <p>Thanks.</p>