From ac345eba97164a3cfa4768d63e7fc4a62f68ffc4 Mon Sep 17 00:00:00 2001 From: Alasdair Armstrong Date: Mon, 31 Jul 2017 16:31:06 +0100 Subject: Changed behavior of return to better match ASL --- test/typecheck/fail/return_simple1.sail | 7 ------- test/typecheck/pass/return_simple4.sail | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 test/typecheck/fail/return_simple1.sail create mode 100644 test/typecheck/pass/return_simple4.sail (limited to 'test/typecheck') diff --git a/test/typecheck/fail/return_simple1.sail b/test/typecheck/fail/return_simple1.sail deleted file mode 100644 index 1bbc0e73..00000000 --- a/test/typecheck/fail/return_simple1.sail +++ /dev/null @@ -1,7 +0,0 @@ - -val forall Nat 'N. [|10:'N|] -> [|10:'N|] effect pure return_test - -function forall Nat 'N. [|10:'N|] return_test x = -{ - return x -} diff --git a/test/typecheck/pass/return_simple4.sail b/test/typecheck/pass/return_simple4.sail new file mode 100644 index 00000000..1bbc0e73 --- /dev/null +++ b/test/typecheck/pass/return_simple4.sail @@ -0,0 +1,7 @@ + +val forall Nat 'N. [|10:'N|] -> [|10:'N|] effect pure return_test + +function forall Nat 'N. [|10:'N|] return_test x = +{ + return x +} -- cgit v1.2.3