]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/InlineLoop.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / InlineLoop.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/InlineLoop.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/InlineLoop.scl
new file mode 100644 (file)
index 0000000..df8433c
--- /dev/null
@@ -0,0 +1,9 @@
+data SList a = Nil | Cons a (SList a)
+
+@inline
+copy (Cons h t) = Cons h (copy t)
+copy l = l
+
+main = "OK"
+--
+OK
\ No newline at end of file