]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/RecursiveValues3.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / RecursiveValues3.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/RecursiveValues3.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/RecursiveValues3.scl
new file mode 100644 (file)
index 0000000..020a967
--- /dev/null
@@ -0,0 +1,12 @@
+data Nat = O | S Nat\r
+\r
+// It is important for this test that even and or are not annotated\r
+even O = True\r
+even (S x) = odd x\r
+\r
+odd O = False\r
+odd (S x) = even x\r
+\r
+main = even (S (S (S (S (S O)))))\r
+--\r
+false
\ No newline at end of file