Xjdk-release: support mixed compilation of Java and Kotlin

#KT-52815 Fixed
This commit is contained in:
Mikhael Bogdanov
2022-11-10 09:48:30 +01:00
committed by Space Team
parent 9bd17f628d
commit edc54524aa
20 changed files with 537 additions and 0 deletions
@@ -0,0 +1,13 @@
// JDK_RELEASE: 10
// FILE: Example.java
public class Example {
public static final String MESSAGE = "OK";
}
// FILE: Kotlin.kt
fun box(): String {
return Example.MESSAGE
}
@@ -0,0 +1,13 @@
// JDK_RELEASE: 11
// FILE: Example.java
public class Example {
public static final String MESSAGE = "OK";
}
// FILE: Kotlin.kt
fun box(): String {
return Example.MESSAGE
}
@@ -0,0 +1,13 @@
// JDK_RELEASE: 6
// FILE: Example.java
public class Example {
public static final String MESSAGE = "OK";
}
// FILE: Kotlin.kt
fun box(): String {
return Example.MESSAGE
}
@@ -0,0 +1,13 @@
// JDK_RELEASE: 8
// FILE: Example.java
public class Example {
public static final String MESSAGE = "OK";
}
// FILE: Kotlin.kt
fun box(): String {
return Example.MESSAGE
}
@@ -0,0 +1,13 @@
// JDK_RELEASE: 9
// FILE: Example.java
public class Example {
public static final String MESSAGE = "OK";
}
// FILE: Kotlin.kt
fun box(): String {
return Example.MESSAGE
}