X-Git-Url: https://git.xandkar.net/?p=tiger.ml.git;a=blobdiff_plain;f=compiler%2Fsrc%2Flib%2Ftiger%2Ftiger_test_cases.ml;h=81690838a73a4cf472b5bb2a3fbf9860db2f2fd8;hp=45a4e1d426e535746373fbd094d6c754aaa8bbec;hb=d5517328dcf93c5bd74f1895262e47b70d2e4313;hpb=fca49f4f3908de86d5895b6a8708216fbb4dd529 diff --git a/compiler/src/lib/tiger/tiger_test_cases.ml b/compiler/src/lib/tiger/tiger_test_cases.ml index 45a4e1d..8169083 100644 --- 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) ) + ; ( 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 =