]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/LocalDefinitions3.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / LocalDefinitions3.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/LocalDefinitions3.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/LocalDefinitions3.scl
new file mode 100644 (file)
index 0000000..71a193f
--- /dev/null
@@ -0,0 +1,10 @@
+\r
+data Step s = Skip s\r
+\r
+next :: (s -> Step s) -> s -> Step s \r
+next next0 ss = match next0 ss with \r
+    Skip ss -> Skip ss\r
+    \r
+main = next (\x -> Skip x) (3 :: Integer)\r
+--\r
+3
\ No newline at end of file