diff options
| author | Kathy Gray | 2014-02-12 15:46:06 +0000 |
|---|---|---|
| committer | Kathy Gray | 2014-02-12 15:46:20 +0000 |
| commit | 44e619d7e80e4f148febf21ebe5115dfdd56cf0f (patch) | |
| tree | e80168656034165f6990259edfbd3f91e99597b1 /src/test | |
| parent | 8fa86dcbf655746dd6f5df054df05f2f0e7ac741 (diff) | |
Checking assignment to a variable
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/pattern.sail | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/pattern.sail b/src/test/pattern.sail index 9a71d0e3..8cdc7a3c 100644 --- a/src/test/pattern.sail +++ b/src/test/pattern.sail @@ -8,11 +8,11 @@ function nat main _ = { (* works - x and y are set to 42 *) n := 1; y := - ignore((switch n { + (switch n { case 0 -> { x := 21; x } case 1 -> { x := 42; x } case x -> { x := 99; x } - })); + }); (* doesn't work - main returns 1 instead of 99 *) n := 3; |
