Iniital implementation of synthetic extensions for SAM-adapter functions (non-static only)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// FILE: KotlinFile.kt
|
||||
|
||||
interface C : A, B
|
||||
|
||||
fun foo(c: C) {
|
||||
c.setSomething(c.getSomething() + 1)
|
||||
c.something++
|
||||
}
|
||||
|
||||
// FILE: A.java
|
||||
public interface A {
|
||||
int getSomething();
|
||||
}
|
||||
|
||||
// FILE: B.java
|
||||
public interface B {
|
||||
int getSomething();
|
||||
void setSomething(int value);
|
||||
}
|
||||
Reference in New Issue
Block a user