diff options
-rw-r--r-- | src/main/java/ext/JavaHelper.java | 2 | ||||
-rw-r--r-- | src/main/kotlin/moe/nea/firm/ManagedConfig.kt | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/ext/JavaHelper.java b/src/main/java/ext/JavaHelper.java index 3ab41d1..c7229fa 100644 --- a/src/main/java/ext/JavaHelper.java +++ b/src/main/java/ext/JavaHelper.java @@ -5,7 +5,7 @@ import moe.nea.firm.InterfaceA; import java.util.function.Supplier; public interface JavaHelper { - static <E extends JavaHelper> InterfaceA<E> createInterfaceA(Supplier<E[]> supplier) { + 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 9c08aaf..b738f6a 100644 --- a/src/main/kotlin/moe/nea/firm/ManagedConfig.kt +++ b/src/main/kotlin/moe/nea/firm/ManagedConfig.kt @@ -2,22 +2,22 @@ package moe.nea.firm import ext.JavaHelper -interface EnumRenderer<E : Any> { +interface InterfaceB<E> { companion object { - fun <E : Enum<E>> default() = object : EnumRenderer<E> {} + fun <E : Enum<E>> default() = object : InterfaceB<E> {} } } -interface InterfaceA<T> {} +interface InterfaceA<T> fun <E : Any> funA( codec: InterfaceA<E>, - renderer: EnumRenderer<E>, + renderer: InterfaceB<E>, ) {} -inline fun <reified E> choice() where E : Enum<E>, E : JavaHelper { +inline fun <reified E> funB() where E : Enum<E>, E : JavaHelper { return funA( - JavaHelper.createInterfaceA { enumValues<E>() }, - EnumRenderer.default(), + JavaHelper.createInterfaceA(), + InterfaceB.default(), ) } |