From 3473f0d274fdeaa2a29bfeebacc63a6f5aaaaf9d Mon Sep 17 00:00:00 2001 From: krasimir Date: Wed, 22 Jul 2009 09:53:39 +0000 Subject: added testcase for pattern matching on runtime variables --- testsuite/compiler/check/strMatch/strMatchCnc.gf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testsuite/compiler/check/strMatch/strMatchCnc.gf (limited to 'testsuite/compiler/check/strMatch/strMatchCnc.gf') diff --git a/testsuite/compiler/check/strMatch/strMatchCnc.gf b/testsuite/compiler/check/strMatch/strMatchCnc.gf new file mode 100644 index 000000000..c1a21b4af --- /dev/null +++ b/testsuite/compiler/check/strMatch/strMatchCnc.gf @@ -0,0 +1,8 @@ +concrete strMatchCnc of strMatch = open Prelude in { + lincat S = {s : Str; b : Bool} ; + lin f x = case x.s of { + "" => {s="empty"; b=False} ; + _ => x + } ; + lin z = {s=""; b=False} ; +} \ No newline at end of file -- cgit v1.2.3