X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FRecursionBug.scl;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FRecursionBug.scl;h=3a6ab24827db6e0b934be11fd60b6dafb8ee1a01;hb=1a70d6085093907f2120e5319554420b1ada614a;hp=0000000000000000000000000000000000000000;hpb=3d5ad70adb8c0276e6bc8a611addb885d17f3e22;p=simantics%2Fplatform.git diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/RecursionBug.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/RecursionBug.scl new file mode 100644 index 000000000..3a6ab2482 --- /dev/null +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/RecursionBug.scl @@ -0,0 +1,16 @@ +module { + export = [main] +} + +import "Prelude" + +data Path = EmptyPath | ConsPath String Path + +showR :: Path -> String +showR EmptyPath = "@" +showR (ConsPath h EmptyPath) = h +showR (ConsPath h t) = "\(h)-\(showR t)" + +main = "Hello world!" +-- +Hello world! \ No newline at end of file