X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=compiler%2Ftestcases%2Ftest39.tig;fp=compiler%2Ftestcases%2Ftest39.tig;h=3cccaa9903239494815b7fc7d1ccbce517d02eb6;hb=38ffcb1fc99ecb7a48097cbcf97b9a3062c8bfa0;hp=0000000000000000000000000000000000000000;hpb=4f2aaee3ef5f70f7769931032fd50af0403c51ae;p=tiger.ml.git diff --git a/compiler/testcases/test39.tig b/compiler/testcases/test39.tig new file mode 100644 index 0000000..3cccaa9 --- /dev/null +++ b/compiler/testcases/test39.tig @@ -0,0 +1,9 @@ +/* This is illegal, since there are two functions with the same name + in the same (consecutive) batch of mutually recursive functions. + See also test48 */ +let + function g(a:int):int = a + function g(a:int):int = a +in + 0 +end