Add named branches for match statements

This commit is contained in:
Ginger Bill
2017-03-19 17:36:08 +00:00
parent 5562364a98
commit c34d839f9f
3 changed files with 69 additions and 111 deletions

View File

@@ -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);
}