Files
Odin/tests/issues/test_issue_5043.odin
2025-04-30 20:13:21 +02:00

24 lines
306 B
Odin

// 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:
}
}