Skip to content

Commit 991b084

Browse files
committed
Add another test: in case Map.map becomes non-overloaded (thanks @Jasper-M)
1 parent a338a05 commit 991b084

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/i11185.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@ class Test:
33

44
Map(1 -> 2).map(foo _)
55
Map(1 -> 2).map(foo)
6+
7+
class Test2:
8+
def foo(a: Int, b: Int) = a + b
9+
10+
def bar(f: ((Int, Int)) => Int) = "ok"
11+
def bar(f: ((Int, Int)) => String)(using Int) = "ok"
12+
13+
bar(foo)
14+
bar(foo _)

0 commit comments

Comments
 (0)