aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/main/java/ext/JavaHelper.java2
-rw-r--r--src/main/kotlin/moe/nea/firm/ManagedConfig.kt14
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(),
)
}