]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Layout1.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Layout1.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Layout1.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Layout1.scl
new file mode 100644 (file)
index 0000000..f68e9a6
--- /dev/null
@@ -0,0 +1,12 @@
+import "Prelude"
+
+foobar x = match x with
+    Left lt -> foo lt
+    Right rt -> bar rt
+  where
+    foo x = "left " + show x
+    bar x = "right " + show x
+
+main = foobar (Left "ASD" :: Either String String)
+--
+left "ASD"
\ No newline at end of file