aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/ext/JavaHelper.java3
-rw-r--r--src/main/kotlin/moe/nea/firm/ManagedConfig.kt5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/ext/JavaHelper.java b/src/main/java/ext/JavaHelper.java
index 98f281b..637aabb 100644
--- a/src/main/java/ext/JavaHelper.java
+++ b/src/main/java/ext/JavaHelper.java
@@ -1,9 +1,10 @@
package ext;
import moe.nea.firm.InterfaceA;
+import moe.nea.firm.InterfaceC;
public interface JavaHelper {
- static <E extends JavaHelper> InterfaceA<E> createInterfaceA() {
+ static <E extends InterfaceC> InterfaceA<E> createInterfaceA() {
return null;
}
}
diff --git a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt
index 35f6a9d..64b04d3 100644
--- a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt
+++ b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt
@@ -9,13 +9,16 @@ interface InterfaceB<E> {
}
interface InterfaceA<T>
+interface InterfaceC
+
+fun <E : InterfaceC> createInterfaceAKotlin():InterfaceA<E> = TODO()
fun <E : Any> funA(
intA: InterfaceA<E>,
intB: InterfaceB<E>,
) {}
-fun <E> funB() where E : Enum<E>, E : JavaHelper {
+fun <E> funB() where E : Enum<E>, E : InterfaceC {
funA(
JavaHelper.createInterfaceA(),
InterfaceB.default(),