summary refs log tree commit diff stats
path: root/tests/tenum.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andi>2008-06-22 16:14:11 +0200
committerAndreas Rumpf <andreas@andi>2008-06-22 16:14:11 +0200
commit405b86068e6a3d39970b9129ceec0a9108464b28 (patch)
treec0449946f54baae6ea88baf453157ddd7faa8f86 /tests/tenum.nim
downloadNim-405b86068e6a3d39970b9129ceec0a9108464b28.tar.gz
Initial import
Diffstat (limited to 'tests/tenum.nim')
-rwxr-xr-xtests/tenum.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tenum.nim b/tests/tenum.nim
new file mode 100755
index 000000000..6e53b9c08
--- /dev/null
+++ b/tests/tenum.nim
@@ -0,0 +1,8 @@
+# Test enums

+

+type

+  E = enum a, b, c, x, y, z

+

+var

+  en: E

+en = a