diff options
| author | Alasdair Armstrong | 2017-08-01 17:38:17 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2017-08-01 17:38:17 +0100 |
| commit | 3695b589eaf0bdf3cdb78cf0b26ba5f70f314dd3 (patch) | |
| tree | 7fed08c2ad3547c337259c5fb0f04d0342324d3f /test | |
| parent | a56ddf5b864c23be7c47dc84882b436b3a4f7473 (diff) | |
Fixed a bug where as patterns weren't binding their variable correctly
Diffstat (limited to 'test')
| -rw-r--r-- | test/typecheck/pass/as_pattern.sail | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/typecheck/pass/as_pattern.sail b/test/typecheck/pass/as_pattern.sail new file mode 100644 index 00000000..a1cd9461 --- /dev/null +++ b/test/typecheck/pass/as_pattern.sail @@ -0,0 +1,7 @@ + +val int -> int effect pure test + +function test ((int) _ as x) = +{ + x +} |
