Added tests with SAM adapter overridden in Java class.

This commit is contained in:
Evgeny Gerashchenko
2013-06-20 20:27:34 +04:00
parent c77559fac9
commit 5c3577dfed
7 changed files with 68 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
class Super {
public String lastCalled = null;
void foo(Runnable r) {
lastCalled = "super";
}
}
class Sub extends Super {
void foo(jet.Function0<jet.Unit> r) {
lastCalled = "sub";
}
}