]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/AsPattern.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / AsPattern.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/AsPattern.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/AsPattern.scl
new file mode 100644 (file)
index 0000000..0e33370
--- /dev/null
@@ -0,0 +1,8 @@
+import "JavaBuiltin" as Java\r
+\r
+sort p@(a,b) | Java.icmpgt a b = (b,a)\r
+             | True            = p\r
+               \r
+main = sort (sort (2 :: Integer,1 :: Integer))\r
+--\r
+(1,2)
\ No newline at end of file