mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-04 00:32:51 -06:00
added testcase for pattern matching on runtime variables
This commit is contained in:
8
testsuite/compiler/check/strMatch/strMatchCnc.gf
Normal file
8
testsuite/compiler/check/strMatch/strMatchCnc.gf
Normal file
@@ -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} ;
|
||||
}
|
||||
Reference in New Issue
Block a user