]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/TypeClassBug1.scl
Merged changes from feature/scl to master.
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / TypeClassBug1.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/TypeClassBug1.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/TypeClassBug1.scl
deleted file mode 100644 (file)
index 2ea51be..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-import "JavaBuiltin" as Java\r
-\r
-importJava "org.simantics.scl.runtime.Lists" where\r
-    foldl :: (a -> b -> a) -> a -> [b] -> a\r
-\r
-class Additive a where\r
-    zero :: a\r
-    (+)  :: a -> a -> a    \r
-    \r
-    sum  :: [a] -> a\r
-    sum = foldl (+) zero    \r
-    \r
-instance (Additive a, Additive b, Additive c) => Additive (a, b, c) where\r
-    zero = (zero, zero, zero)\r
-    (a0, b0, c0) + (a1, b1, c1) = (a0+a1, b0+b1, c0+c1)\r
-    \r
-main = "OK"\r
---\r
-OK
\ No newline at end of file