From 106704b9564b50e95dfce50b7a7471e73b64a78e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 24 Feb 2024 15:24:44 -0500 Subject: Improve enums with metamethods --- tests/enums.nl | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/enums.nl (limited to 'tests') 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) -- cgit v1.2.3