summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKathy Gray2014-02-07 12:46:56 +0000
committerKathy Gray2014-02-07 12:46:56 +0000
commit7eb6dea6255eb0dbddaca6309af4f9fd1755041b (patch)
treecaeec3011679719b7175bd29e72fd698be851659 /src/test
parent062eadd4238692c2f5b486d0febcf05c7b48ca83 (diff)
Correct variable-name bug that was throwing away type checking coercions and type annotations
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test1.sail2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test1.sail b/src/test/test1.sail
index c603bb65..da9e43fb 100644
--- a/src/test/test1.sail
+++ b/src/test/test1.sail
@@ -29,6 +29,8 @@ function clause f ( C (a) ) = C(a)
end ast
end f
+function unit a (bit) b = if b then () else ()
+
function bit sw s = switch s { case 0 -> bitzero }
function bit main _ = {ignore(sw(0)); v1[0] }