Skip to content

Commit 0feef95

Browse files
committed
Add correct test
1 parent 6020e64 commit 0feef95

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/pos/i3352.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Test {
2+
class Foo {
3+
def bar(x: String): Int = 1
4+
}
5+
6+
implicit class FooOps(foo: Foo) {
7+
def bar(x: Int, y: Int = 2): Int = 2 // compiles with no default argument
8+
}
9+
10+
def test(foo: Foo): Unit = {
11+
foo.bar(1)
12+
}
13+
}

0 commit comments

Comments
 (0)