Skip to content

Commit 9fddb84

Browse files
authored
Merge pull request #6402 from dotty-staging/fix/i5711
Fix #5711: check that lambdas interact correctly with overloads
2 parents 0cfe6e6 + 3ee1660 commit 9fddb84

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pos/i5711.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
object trace {
2+
def apply[T](a: String, showOp: Any => String) = 0
3+
def apply[T](a: Int, log: String => Unit) = 0
4+
5+
apply("", res => res.toString)
6+
}

0 commit comments

Comments
 (0)