Added some new test for java8

This commit is contained in:
Michael Bogdanov
2015-05-12 17:38:08 +03:00
parent 37dfa58cd3
commit 3fbdf05921
10 changed files with 90 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
interface Simple {
default String test(String s) {
return s + "Fail";
}
}

View File

@@ -0,0 +1,13 @@
trait KTrait: Simple {
override fun test(s: String): String {
return s + "K"
}
}
class Test : KTrait {
}
fun box(): String {
return Test().test("O")
}