]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/LocalDefinitions3.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / LocalDefinitions3.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/LocalDefinitions3.scl b/tests/org.simantics.scl.compiler.tests/src/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