]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/AmbiguousType.scl
Automatic execution of SCL tests in Maven
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / AmbiguousType.scl
diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/AmbiguousType.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/AmbiguousType.scl
new file mode 100644 (file)
index 0000000..f4871d7
--- /dev/null
@@ -0,0 +1,12 @@
+\r
+\r
+class Show a where\r
+    show :: a -> String\r
+    \r
+class Read a where\r
+    read :: String -> a\r
+  \r
+combine x = show (read x)\r
+--\r
+9:13-9:17: Constrain Show a contains free variables not mentioned in the type of the value.\r
+9:19-9:23: Constrain Read a contains free variables not mentioned in the type of the value.
\ No newline at end of file