Minor, improve test on unexported package in Java module

Add Kotlin class/function/property.
This commit is contained in:
Alexander Udalov
2024-02-19 16:31:50 +01:00
committed by Space Team
parent 0b10d3a0e9
commit ac901c6d07
8 changed files with 74 additions and 1 deletions
@@ -0,0 +1,9 @@
package a
import a.impl.KImpl
open class K {
companion object {
fun getInstance(): KImpl = KImpl()
}
}
@@ -2,4 +2,7 @@ package a.impl;
import a.A;
public class AImpl extends A {}
public class AImpl extends A {
public static String field = "";
public static String method() { return ""; }
}
@@ -0,0 +1,10 @@
package a.impl
import a.K
class KImpl : K() {
companion object {
val field: String = ""
fun method(): String = ""
}
}
@@ -0,0 +1,4 @@
package a.impl
val fileField: String = ""
fun fileMethod(): String = ""
@@ -1,3 +1,5 @@
module moduleA {
exports a;
requires kotlin.stdlib;
}