aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/enum_cast.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/enum_cast.vv')
-rw-r--r--v_windows/v/old/vlib/v/checker/tests/enum_cast.vv7
1 files changed, 7 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/enum_cast.vv b/v_windows/v/old/vlib/v/checker/tests/enum_cast.vv
new file mode 100644
index 0000000..40e9ec7
--- /dev/null
+++ b/v_windows/v/old/vlib/v/checker/tests/enum_cast.vv
@@ -0,0 +1,7 @@
+enum Color { red green = 10 blue }
+
+fn main() {
+ println(Color(0))
+ println(Color(10))
+ println(Color(12))
+} \ No newline at end of file