Make switch in f { valid

This commit is contained in:
gingerBill
2018-02-25 10:55:18 +00:00
parent b74ae77745
commit f96a897821
2 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -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: