Minor, improve test on unexported package in Java module
Add Kotlin class/function/property.
This commit is contained in:
committed by
Space Team
parent
0b10d3a0e9
commit
ac901c6d07
@@ -0,0 +1,9 @@
|
||||
package a
|
||||
|
||||
import a.impl.KImpl
|
||||
|
||||
open class K {
|
||||
companion object {
|
||||
fun getInstance(): KImpl = KImpl()
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -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 ""; }
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package a.impl
|
||||
|
||||
import a.K
|
||||
|
||||
class KImpl : K() {
|
||||
companion object {
|
||||
val field: String = ""
|
||||
fun method(): String = ""
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package a.impl
|
||||
|
||||
val fileField: String = ""
|
||||
fun fileMethod(): String = ""
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
module moduleA {
|
||||
exports a;
|
||||
|
||||
requires kotlin.stdlib;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user