aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-28 18:32:11 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-28 18:32:11 +0100
commit11915659912ae7d6b76a479231ba8c7b09840c1a (patch)
treed66158768f61535b7392bcafdcca27b78ad57c1a /src/main/kotlin
parentd97658e317ced0bc0b73af1989e86ce5a5577221 (diff)
downloadreproduction-infinite-compile-11915659912ae7d6b76a479231ba8c7b09840c1a.tar.gz
reproduction-infinite-compile-11915659912ae7d6b76a479231ba8c7b09840c1a.tar.bz2
reproduction-infinite-compile-11915659912ae7d6b76a479231ba8c7b09840c1a.zip
Remove even more stuff
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/moe/nea/firm/ManagedConfig.kt14
1 files changed, 7 insertions, 7 deletions
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(),
)
}