summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlasdair Armstrong2017-08-01 18:04:08 +0100
committerAlasdair Armstrong2017-08-01 18:04:08 +0100
commitec9bfb950087c430ba96387c5b83dc88397e06b2 (patch)
treee98a886c27358ad667f55ba3e206bed56419b1d3 /test
parent3695b589eaf0bdf3cdb78cf0b26ba5f70f314dd3 (diff)
Fixed a bug where type_synonyms were not being expanded properly when considering possible casts
Diffstat (limited to 'test')
-rw-r--r--test/typecheck/pass/vector_synonym_cast.sail8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/typecheck/pass/vector_synonym_cast.sail b/test/typecheck/pass/vector_synonym_cast.sail
new file mode 100644
index 00000000..72a7e9d0
--- /dev/null
+++ b/test/typecheck/pass/vector_synonym_cast.sail
@@ -0,0 +1,8 @@
+
+typedef vecsyn = vector<0,1,dec,bit>
+
+val cast vector<1,1,dec,bit> -> vector<0,1,dec,bit> effect pure test_cast
+
+val vector<1,1,dec,bit> -> vecsyn effect pure test
+
+function test x = x