Use proper flag for interface method invocation

This commit is contained in:
Mikhael Bogdanov
2017-01-10 16:40:23 +01:00
parent 0f2139f27d
commit 7f8acbb759
4 changed files with 59 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
// FILE: Simple.java
public interface Simple {
default String test() {
return "O";
}
static String testStatic() {
return "K";
}
}
// FILE: main.kt
// JVM_TARGET: 1.8
class TestClass : Simple {
override fun test(): String {
return super.test()
}
}
fun box(): String {
return TestClass().test() + Simple.testStatic()
}