]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Tuples.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Tuples.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Tuples.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Tuples.scl
new file mode 100644 (file)
index 0000000..5f70e4b
--- /dev/null
@@ -0,0 +1,18 @@
+id0 () = ()\r
+\r
+id0A :: () -> ()\r
+id0A () = ()\r
+\r
+id2 (a,b) = (a,b)\r
+\r
+id2A :: (a,b) -> (a,b)\r
+id2A (a,b) = (a,b)\r
+\r
+id3 (a,b,c) = (a,b,c)\r
+\r
+id3A :: (a,b,c) -> (a,b,c)\r
+id3A (a,b,c) = (a,b,c)\r
+\r
+main = id3 (1 :: Integer,id0 (),3 :: Integer)\r
+--\r
+(1,(),3)
\ No newline at end of file