Move JVM8 box test to common

This commit is contained in:
Mikhael Bogdanov
2018-10-16 11:06:27 +02:00
parent b61608aba7
commit ac8e1a0124
110 changed files with 0 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
// !LANGUAGE: +JvmStaticInInterface
// WITH_RUNTIME
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
// FILE: test.kt
fun box(): String {
return Java.test()
}
interface Foo {
companion object {
@JvmStatic
fun foo() = "O"
val fooProp = "K"
@JvmStatic get
}
}
// FILE: Java.java
public class Java {
public static String test() {
return Foo.foo() + Foo.getFooProp();
}
}