aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firm
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-26 22:49:12 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-26 22:49:12 +0100
commit457d4eaf10e5bb80b576af651f5babaae63673da (patch)
tree45e9de87e880b013c361824852c0409e6da1f6d1 /src/main/kotlin/moe/nea/firm
parentc04359b5e9bbfd50926d45321b6e7b3fdeae6e87 (diff)
downloadreproduction-infinite-compile-457d4eaf10e5bb80b576af651f5babaae63673da.tar.gz
reproduction-infinite-compile-457d4eaf10e5bb80b576af651f5babaae63673da.tar.bz2
reproduction-infinite-compile-457d4eaf10e5bb80b576af651f5babaae63673da.zip
Add alternative crasher
Diffstat (limited to 'src/main/kotlin/moe/nea/firm')
-rw-r--r--src/main/kotlin/moe/nea/firm/User.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firm/User.kt b/src/main/kotlin/moe/nea/firm/User.kt
index 4dfac0d..09b0b73 100644
--- a/src/main/kotlin/moe/nea/firm/User.kt
+++ b/src/main/kotlin/moe/nea/firm/User.kt
@@ -1,9 +1,13 @@
package moe.nea.firm
import ext.StringIdentifiable
+import kotlin.enums.enumEntries
object User : ManagedConfig("test") {
val option by choice("name") { TestEnum.A }
+ val optionAlt by choice("name", enumEntries<TestEnum>(),
+ StringIdentifiable.createCodec { enumValues<TestEnum>() },
+ EnumRenderer.default<TestEnum>()) { TestEnum.A }
enum class TestEnum : StringIdentifiable {
A, B, C;