summaryrefslogtreecommitdiff
path: root/test/matchunion.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-10-28 15:39:01 -0400
committerOri Bernstein <ori@eigenstate.org>2013-10-28 15:39:01 -0400
commit89e514d5355f9036a30c4a41cacc465e5999aa76 (patch)
treef6402fddce8bde453291627cdd4d8db2ad0fd59e /test/matchunion.myr
parent682c4ce6114cb44e2ad95a75269585f6e1da8150 (diff)
downloadmc-89e514d5355f9036a30c4a41cacc465e5999aa76.tar.gz
Streamline syntax.
Move from: match foo bar: action ;; baz: action ;; To: match foo | bar: action | baz: action ;;
Diffstat (limited to 'test/matchunion.myr')
-rw-r--r--test/matchunion.myr16
1 files changed, 4 insertions, 12 deletions
diff --git a/test/matchunion.myr b/test/matchunion.myr
index 734aa95..8eb1d77 100644
--- a/test/matchunion.myr
+++ b/test/matchunion.myr
@@ -13,17 +13,9 @@ const main = {
v = `Foo
match v
- `Bar:
- -> 42
- ;;
- `Baz:
- -> 81
- ;;
- `Foo:
- -> 84
- ;;
- `Quux:
- -> 123
- ;;
+ | `Bar: -> 42
+ | `Baz: -> 81
+ | `Foo: -> 84
+ | `Quux: -> 123
;;
}