Skip to content

Commit 3ee1660

Browse files
committed
Fix #5711: check that lambdas interact correctly with overloads
1 parent fbc9d0a commit 3ee1660

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)