diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-26 22:49:12 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-26 22:49:12 +0100 |
commit | 457d4eaf10e5bb80b576af651f5babaae63673da (patch) | |
tree | 45e9de87e880b013c361824852c0409e6da1f6d1 /src/main/kotlin/moe/nea/firm | |
parent | c04359b5e9bbfd50926d45321b6e7b3fdeae6e87 (diff) | |
download | reproduction-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.kt | 4 |
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; |