mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add test coverage for a trailing comma in the alternatives list, and empty parentheses in an alternative declaration. (#305)
This commit is contained in:
+7
@@ -30,3 +30,10 @@ fn main() -> Int {
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
||||
// Test some alternate syntaxes
|
||||
choice MoreInts {
|
||||
None(),
|
||||
One(Int),
|
||||
Two(Int,Int),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user