]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/BigInstances.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / BigInstances.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/BigInstances.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/BigInstances.scl
new file mode 100644 (file)
index 0000000..c64b1b7
--- /dev/null
@@ -0,0 +1,16 @@
+\r
+class Foo a where\r
+    foo :: a\r
+    \r
+class (Foo a) => Bar a where\r
+    bar :: a\r
+    \r
+instance Bar Double where\r
+    foo x = x\r
+    bar x = x\r
+    \r
+main = foo 3.0 + bar 4.0\r
+--\r
+7.0\r
+\r
+    
\ No newline at end of file