diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/ext/JavaHelper.java | 2 | ||||
-rw-r--r-- | src/main/kotlin/moe/nea/firm/ManagedConfig.kt | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/ext/JavaHelper.java b/src/main/java/ext/JavaHelper.java index c7229fa..98f281b 100644 --- a/src/main/java/ext/JavaHelper.java +++ b/src/main/java/ext/JavaHelper.java @@ -2,8 +2,6 @@ package ext; import moe.nea.firm.InterfaceA; -import java.util.function.Supplier; - public interface JavaHelper { static <E extends JavaHelper> 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 b738f6a..35f6a9d 100644 --- a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt +++ b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt @@ -11,12 +11,12 @@ interface InterfaceB<E> { interface InterfaceA<T> fun <E : Any> funA( - codec: InterfaceA<E>, - renderer: InterfaceB<E>, + intA: InterfaceA<E>, + intB: InterfaceB<E>, ) {} -inline fun <reified E> funB() where E : Enum<E>, E : JavaHelper { - return funA( +fun <E> funB() where E : Enum<E>, E : JavaHelper { + funA( JavaHelper.createInterfaceA(), InterfaceB.default(), ) |