adds the cases of #5043 and #5097 to the CI

This commit is contained in:
Laytan Laats
2025-04-30 20:13:21 +02:00
parent e64bcc7709
commit d2f8cb1306
4 changed files with 42 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
// Tests issue #5043 https://github.com/odin-lang/Odin/issues/5043
package test_issues
Table :: map [string] Type
List :: [dynamic] Type
Type :: union {
^Table,
^List,
i64,
}
main :: proc() {
v: Type = 5
switch t in v {
case ^Table: // or case ^map [string] Type:
case ^List:
case i64:
}
}