fix failure to handle otherwise blocks with multiple expressions

This commit is contained in:
2021-10-13 11:30:34 -06:00
parent bdc23b1eca
commit c171c172c3
2 changed files with 9 additions and 3 deletions

View File

@@ -378,7 +378,12 @@
((Some (as inner (Some v)))
(Assert.equals 5 v)
(Assert.isTrue (Type.enumEq (Some 5) inner)))
(otherwise (Assert.fail))))
(otherwise (Assert.fail)))
// Otherwise blocks should allow multiple expressions, too:
(case 5
(otherwise
6 5)))
(function _testMaps []
(localVar :Map<String,String> myMap [=>"hey" "you"