aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firm/User.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/firm/User.kt')
-rw-r--r--src/main/kotlin/moe/nea/firm/User.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firm/User.kt b/src/main/kotlin/moe/nea/firm/User.kt
new file mode 100644
index 0000000..4dfac0d
--- /dev/null
+++ b/src/main/kotlin/moe/nea/firm/User.kt
@@ -0,0 +1,14 @@
+package moe.nea.firm
+
+import ext.StringIdentifiable
+
+object User : ManagedConfig("test") {
+ val option by choice("name") { TestEnum.A }
+
+ enum class TestEnum : StringIdentifiable {
+ A, B, C;
+ }
+}
+fun main() {
+ User.option
+} \ No newline at end of file