home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add micro test for recursive type def
[tiger.ml.git]
/
compiler
/
src
/
lib
/
tiger
/
tiger_test_cases.ml
diff --git
a/compiler/src/lib/tiger/tiger_test_cases.ml
b/compiler/src/lib/tiger/tiger_test_cases.ml
index
45a4e1d
..
8169083
100644
(file)
--- a/
compiler/src/lib/tiger/tiger_test_cases.ml
+++ b/
compiler/src/lib/tiger/tiger_test_cases.ml
@@
-88,6
+88,16
@@
let micro =
(* TODO: Be more specific *)
~is_error_expected_semant:(Some Error.is_wrong_type)
)
(* TODO: Be more specific *)
~is_error_expected_semant:(Some Error.is_wrong_type)
)
+ ; ( Test.case
+ "Recursive type def: int list"
+ ~code:"\
+ let \n\
+ type intlist = {hd: int, tl: intlist} \n\
+ var lst : intlist := intlist {hd=0, tl = nil} \n\
+ in \n\
+ lst \n\
+ end"
+ )
]
let book ~dir =
]
let book ~dir =
This page took
0.024818 seconds
and
4
git commands to generate.