From 588c45e84642425fe9530f4ef6a44753cc54a0f8 Mon Sep 17 00:00:00 2001 From: Alasdair Armstrong Date: Thu, 10 Aug 2017 23:24:59 +0100 Subject: Fix bug with subtyping in let bindings --- test/typecheck/pass/let_subtyp_bug.sail | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/typecheck/pass/let_subtyp_bug.sail (limited to 'test/typecheck') diff --git a/test/typecheck/pass/let_subtyp_bug.sail b/test/typecheck/pass/let_subtyp_bug.sail new file mode 100644 index 00000000..e2abde2d --- /dev/null +++ b/test/typecheck/pass/let_subtyp_bug.sail @@ -0,0 +1,9 @@ +let ([|5|]) y = 2 + +val unit -> nat effect pure test + +function test() = { + let ([|5|]) x = 2 in + x +} + \ No newline at end of file -- cgit v1.2.3