aboutsummaryrefslogtreecommitdiff
path: root/tests/issues/test_issue_5043.odin
blob: ce36bf6741472f3373b56c775ded543a23860c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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:

	}
}