Skip to content

Commit efa691c

Browse files
authored
Merge pull request #6170 from dotty-staging/fix-#3190
Fix #3190: Add regression test
2 parents cc3ff0b + a623f1b commit efa691c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/3190.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
object Test extends App {
2+
class Foo
3+
class Bar extends Foo
4+
5+
def overload(implicit foo: Foo): Unit = {}
6+
def overload(implicit bar: Bar): Unit = {}
7+
8+
overload(new Bar)
9+
}

0 commit comments

Comments
 (0)