]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Sort2.scl
(refs #7307) Added features field to SCL module header
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Sort2.scl
index 8518264ecd1790264d0807b811365984b0c854ed..440cf7a72ad82a22bed58f1de71cc58acba9010b 100644 (file)
@@ -1,19 +1,19 @@
-import "JavaBuiltin" as Java\r
-\r
-importJava "org.simantics.scl.runtime.Lists" where\r
-    sortWith :: (a -> a -> Integer) -> [a] -> [a]\r
-\r
-//@JavaStaticMethod "org.simantics.scl.runtime.Lists.sortWith"\r
-//sortWith :: (a -> a -> Integer) -> [a] -> [a]\r
-\r
-\r
-//sortWith = Java.staticMethod "org.simantics.scl.runtime.Lists.sortWith"\r
-\r
-dumbCompare :: a -> a -> Integer\r
-dumbCompare x y = 0\r
-\r
-dumbSort = sortWith dumbCompare \r
-\r
-main = "Foo"\r
---\r
+import "JavaBuiltin" as Java
+
+importJava "org.simantics.scl.runtime.Lists" where
+    sortWith :: (a -> a -> Integer) -> [a] -> [a]
+
+//@JavaStaticMethod "org.simantics.scl.runtime.Lists.sortWith"
+//sortWith :: (a -> a -> Integer) -> [a] -> [a]
+
+
+//sortWith = Java.staticMethod "org.simantics.scl.runtime.Lists.sortWith"
+
+dumbCompare :: a -> a -> Integer
+dumbCompare x y = 0
+
+dumbSort = sortWith dumbCompare 
+
+main = "Foo"
+--
 Foo
\ No newline at end of file