Make switch in f { valid

This commit is contained in:
gingerBill committed 2018-02-25 10:55:18 +00:00
1 parent b74ae77745
commit f96a897821
2 files changed
+10 -6

No files matched your search

+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: