Remove switch in in favour of switch _ in

This commit is contained in:
gingerBill
2023-08-08 14:57:25 +01:00
parent 49ab935ae9
commit cd74cdfdaf
6 changed files with 13 additions and 10 deletions

View File

@@ -1354,13 +1354,13 @@ partial_switch :: proc() {
{ // union
Foo :: union {int, bool}
f: Foo = 123
switch in f {
switch _ in f {
case int: fmt.println("int")
case bool: fmt.println("bool")
case:
}
#partial switch in f {
#partial switch _ in f {
case bool: fmt.println("bool")
}
}