Add named branches for match statements
This commit is contained in:
1 parent
5562364a98
commit
c34d839f9f
3 files changed
+69
-111
No files matched your search
+1
-2
@@ -66,7 +66,6 @@ main :: proc() {
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
{
|
||||
@@ -82,7 +81,7 @@ main :: proc() {
|
||||
// Ternary operator
|
||||
y := cond ? 3 : 4;
|
||||
|
||||
FOO :: true ? 123 : 432; // Constant ternary operation
|
||||
FOO :: true ? 123 : 432; // Constant ternary expression
|
||||
fmt.println("Ternary values:", y, FOO);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user