Added sam test on java8 interface with default method

This commit is contained in:
Michael Bogdanov
2015-04-18 12:11:46 +03:00
parent 5c18cfebd1
commit 115c4b78c0
5 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class JavaCall {
String call(Test test) {
return test.call();
}
}

View File

@@ -0,0 +1,12 @@
interface Test {
String call();
default String test() {
return "K";
}
static String testStatic() {
return "K";
}
}

View File

@@ -0,0 +1,3 @@
fun box(): String {
return JavaCall().call {"OK"}
}