X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FGenericMutualRecursion.scl;h=580260f75f4cfd228382454f43cba93b7dbb00f8;hp=24c5858d6d8ba455f16412169b141b74c4cae8a9;hb=172abed5dbf73c1304a7a95bb8504ea293556948;hpb=602614f4502aae85ecf3967abb7152d2d62903e3 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/GenericMutualRecursion.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/GenericMutualRecursion.scl index 24c5858d6..580260f75 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/GenericMutualRecursion.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/GenericMutualRecursion.scl @@ -1,12 +1,12 @@ -// Idea of this test is to ensure that generic type variables -// and constraints are handled correctly with mutually recursive -// functions - -import "Prelude" - -deepId count x = deepId2 count x -deepId2 count x = if count <= 0 then x else deepId (count-1) x - -main = deepId 5 "FOO" --- +// Idea of this test is to ensure that generic type variables +// and constraints are handled correctly with mutually recursive +// functions + +import "Prelude" + +deepId count x = deepId2 count x +deepId2 count x = if count <= 0 then x else deepId (count-1) x + +main = deepId 5 "FOO" +-- FOO \ No newline at end of file