aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/match_undefined_cond.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/match_undefined_cond.vv')
-rw-r--r--v_windows/v/old/vlib/v/checker/tests/match_undefined_cond.vv10
1 files changed, 10 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/match_undefined_cond.vv b/v_windows/v/old/vlib/v/checker/tests/match_undefined_cond.vv
new file mode 100644
index 0000000..952e4b7
--- /dev/null
+++ b/v_windows/v/old/vlib/v/checker/tests/match_undefined_cond.vv
@@ -0,0 +1,10 @@
+type Asd = int
+
+fn main() {
+ res := match Asd {
+ 1 { 'foo' }
+ 2 { 'test' }
+ else { '' }
+ }
+ _ = res
+}