projects
/
scheme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bindings in ADT pattern matching codegen
[scheme.git]
/
tests.scm
diff --git
a/tests.scm
b/tests.scm
index 0c11e89714b89d309cae775cc7f47d3d800e752f..a3f4913a75d5e9177843da3d5a71ce2d24b0a8b4 100644
(file)
--- a/
tests.scm
+++ b/
tests.scm
@@
-300,3
+300,10
@@
[c 1])))
2)
[c 1])))
2)
+(test-prog '((data Foo [foo Int Int] [bar Bool])
+ (case (foo 42 12)
+ [(foo 20 x) 0]
+ [(foo 42 x) x]
+ [(bar x) 0]))
+ 12)
+