Added tests with SAM adapter overridden in Kotlin class.

This commit is contained in:
Evgeny Gerashchenko
2013-06-20 20:59:40 +04:00
parent f4c3a89408
commit fd7b29ad48
7 changed files with 62 additions and 0 deletions
@@ -0,0 +1,13 @@
package test
public final class Sub : test.Super {
public constructor Sub()
internal open override /*1*/ fun foo(/*0*/ r: (() -> jet.Unit)?): jet.Unit
internal open override /*1*/ /*fake_override*/ fun foo(/*0*/ r: java.lang.Runnable?): jet.Unit
}
public open class Super : java.lang.Object {
public constructor Super()
public/*package*/ open /*synthesized*/ fun foo(/*0*/ r: (() -> jet.Unit)?): jet.Unit
public/*package*/ open fun foo(/*0*/ r: java.lang.Runnable?): jet.Unit
}
@@ -0,0 +1,6 @@
package test
public class Sub: Super() {
override fun foo(r: (() -> Unit)?) {
}
}
@@ -0,0 +1,5 @@
package test;
public class Super {
void foo(Runnable r);
}