Skip to content

Commit 5c21583

Browse files
committed
Add test case
1 parent c4be219 commit 5c21583

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/pos/i576.scala

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class A
2+
3+
object Impl {
4+
def foo()(implicit x: A = null): Int = 2
5+
def test: Int = {
6+
foo()() // ok
7+
foo() // did not work before, does now
8+
}
9+
}
10+
11+
// same with multiple parameters
12+
object Impl2 {
13+
def foo()(implicit ev: Int, x: A = null): Int = 2
14+
def test: Int = {
15+
implicit val ii: Int = 1
16+
foo()
17+
}
18+
}

0 commit comments

Comments
 (0)