Add test coverage for a trailing comma in the alternatives list, and empty parentheses in an alternative declaration. (#305)

This commit is contained in:
Geoff Romer
2021-03-01 10:34:50 -08:00
committed by GitHub
parent f5300a84e5
commit fe328b2a7b
2 changed files with 19 additions and 0 deletions
+7
View File
@@ -30,3 +30,10 @@ fn main() -> Int {
}
return n;
}
// Test some alternate syntaxes
choice MoreInts {
None(),
One(Int),
Two(Int,Int),
}