Make switch in f { valid
This commit is contained in:
1 parent
b74ae77745
commit
f96a897821
2 files changed
+10
-6
No files matched your search
+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