diff options
| author | Alasdair Armstrong | 2017-11-15 19:02:31 +0000 |
|---|---|---|
| committer | Alasdair Armstrong | 2017-11-15 19:02:31 +0000 |
| commit | 17488b1fdd35983f41c80282997c0ab820c9a23d (patch) | |
| tree | 56c30a3b32ead118e1bf8fea5e713b8b1c1289b1 /test/typecheck | |
| parent | 82d5f420cbade62db7a1ae233a093122cddc5ae3 (diff) | |
Additional test case for OCaml backend
Diffstat (limited to 'test/typecheck')
| -rw-r--r-- | test/typecheck/fail/ex_cast.sail | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/typecheck/fail/ex_cast.sail b/test/typecheck/fail/ex_cast.sail new file mode 100644 index 00000000..5ea22d14 --- /dev/null +++ b/test/typecheck/fail/ex_cast.sail @@ -0,0 +1,12 @@ + +default Order dec + +val cast int -> exist 'n. [:'n:] effect pure ex_int + +val [:'n:] -> bit['n] effect pure zeros + +val int -> unit effect pure test + +function test n = { + x := zeros(n) +} |
