We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2935ff9 + 348ceef commit 44bbcdfCopy full SHA for 44bbcdf
tests/pos/i15881/J.java
@@ -0,0 +1,3 @@
1
+public abstract class J {
2
+ public abstract int f(int i);
3
+}
tests/pos/i15881/K.java
+public interface K {
+ int f(int i);
tests/pos/i15881/s.scala
@@ -0,0 +1,14 @@
+class C {
+ def f(j: J): Int = j.f(42)
+ def g(k: K): Int = k.f(17)
4
5
+object Test extends App {
6
+ def bump(i: Int): Int = i + 1
7
+ val c = new C
8
+ println {(
9
+ c.f((i: Int) => i + 1),
10
+ c.g((i: Int) => i + 1),
11
+ c.f(bump),
12
+ c.g(bump),
13
+ )}
14
0 commit comments