aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i576.scala
blob: 77b38d742d65374a93930678ffd4fced08727547 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class A

object Impl {
  def foo()(implicit x: A = null): Int = 2
  def test: Int = {
    foo()() // ok
    foo()   // did not work before, does now
  }
}

// same with multiple parameters
object Impl2 {
  def foo()(implicit ev: Int, x: A = null): Int = 2
  def test: Int = {
    implicit val ii: Int = 1
    foo()
  }
}