summaryrefslogtreecommitdiff
path: root/test/typecheck
diff options
context:
space:
mode:
authorAlasdair Armstrong2017-09-21 15:54:57 +0100
committerAlasdair Armstrong2017-09-21 15:54:57 +0100
commitf726c992ab2506ae3fb8a52993b2c46a1ae0a3b1 (patch)
treea257caf2884b9857fc9e4beb28171077c7c7758b /test/typecheck
parent15309c879d2c877953512c401e66a7a48af6df97 (diff)
Cleaning up the AST and removing redundant and/or unused nodes
Diffstat (limited to 'test/typecheck')
-rw-r--r--test/typecheck/pass/ex_cast.sail12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/typecheck/pass/ex_cast.sail b/test/typecheck/pass/ex_cast.sail
new file mode 100644
index 00000000..5ea22d14
--- /dev/null
+++ b/test/typecheck/pass/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)
+}