mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-20 16:36:46 +00:00
Make switch in f { valid
This commit is contained in:
+1
-1
@@ -752,7 +752,7 @@ complete_switch :: proc() {
|
||||
{ // union
|
||||
Foo :: union {int, bool};
|
||||
f: Foo = 123;
|
||||
#complete switch _ in f {
|
||||
#complete switch in f {
|
||||
case int: fmt.println("int");
|
||||
case bool: fmt.println("bool");
|
||||
case:
|
||||
|
||||
Reference in New Issue
Block a user