Move java 8 tests to java8 folder

This commit is contained in:
Mikhael Bogdanov
2018-02-06 10:24:41 +01:00
parent 7e512ba018
commit ad48099ca6
6 changed files with 12 additions and 36 deletions

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"
@JvmStatic
var fooProp = ""
}
}
// FILE: Java.java
public class Java {
public static String test() {
Foo.setFooProp("K");
return Foo.foo() + Foo.getFooProp();
}
}

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();
}
}