diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-28 18:32:11 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-28 18:32:11 +0100 |
commit | 11915659912ae7d6b76a479231ba8c7b09840c1a (patch) | |
tree | d66158768f61535b7392bcafdcca27b78ad57c1a /src | |
parent | d97658e317ced0bc0b73af1989e86ce5a5577221 (diff) | |
download | reproduction-infinite-compile-11915659912ae7d6b76a479231ba8c7b09840c1a.tar.gz reproduction-infinite-compile-11915659912ae7d6b76a479231ba8c7b09840c1a.tar.bz2 reproduction-infinite-compile-11915659912ae7d6b76a479231ba8c7b09840c1a.zip |
Remove even more stuff
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 | 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(), ) } |