aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-24 15:24:44 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-24 15:24:44 -0500
commit106704b9564b50e95dfce50b7a7471e73b64a78e (patch)
tree509e94ff49f76c9c2edc75c20fe1da9bfd600912 /tests
parentc7470346457550467bafd9199185c5d0e8481f02 (diff)
Improve enums with metamethods
Diffstat (limited to 'tests')
-rw-r--r--tests/enums.nl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/enums.nl b/tests/enums.nl
new file mode 100644
index 00000000..485a262b
--- /dev/null
+++ b/tests/enums.nl
@@ -0,0 +1,5 @@
+enum Foo(Zero, One(x:Int), Two(x,y:Int))
+
+>> Foo__Zero()
+>> Foo__One(123)
+>> Foo__Two(123, 456)