Test with SAM adapter for method inherited/overriding other from Kotlin.

This commit is contained in:
Evgeny Gerashchenko
2013-06-22 18:46:25 +04:00
parent 525af972d3
commit 2cb4c7edbb
7 changed files with 53 additions and 0 deletions
@@ -0,0 +1,11 @@
package test
public open class Sub : test.Super {
public constructor Sub()
internal final override /*1*/ /*fake_override*/ fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
}
public final class Super {
public constructor Super()
internal final fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
}
@@ -0,0 +1,4 @@
package test;
public class Sub extends Super {
}
@@ -0,0 +1,5 @@
package test
public class Super {
fun foo(r: Runnable)
}
@@ -0,0 +1,12 @@
package test
public open class Sub : test.Super {
public constructor Sub()
public open /*synthesized*/ fun foo(/*0*/ r: () -> jet.Unit): jet.Unit
public open override /*1*/ fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
}
public final class Super {
public constructor Super()
internal final fun foo(/*0*/ r: java.lang.Runnable): jet.Unit
}
@@ -0,0 +1,6 @@
package test;
public class Sub extends Super {
public void foo(Runnable r) {
}
}
@@ -0,0 +1,5 @@
package test
public class Super {
fun foo(r: Runnable)
}