diff --git a/testsuite/compiler/check/strMatch/strMatch.gf b/testsuite/compiler/check/strMatch/strMatch.gf new file mode 100644 index 000000000..c1d2bc4b9 --- /dev/null +++ b/testsuite/compiler/check/strMatch/strMatch.gf @@ -0,0 +1,5 @@ +abstract strMatch = { + cat S ; + fun f : S -> S ; + z : S ; +} \ No newline at end of file diff --git a/testsuite/compiler/check/strMatch/strMatch.gfs b/testsuite/compiler/check/strMatch/strMatch.gfs new file mode 100644 index 000000000..8f039c1de --- /dev/null +++ b/testsuite/compiler/check/strMatch/strMatch.gfs @@ -0,0 +1,2 @@ +i testsuite/compiler/check/strMatch/strMatch.gf +l f z \ No newline at end of file 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