]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/OverloadedLiterals2.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / OverloadedLiterals2.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/OverloadedLiterals2.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/OverloadedLiterals2.scl
new file mode 100644 (file)
index 0000000..c167097
--- /dev/null
@@ -0,0 +1,9 @@
+import "Prelude"\r
+\r
+inc :: Ring a => a -> a\r
+inc x = x + 1\r
+\r
+main :: Double\r
+main = inc 34\r
+--\r
+35.0
\ No newline at end of file