]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/TypeInferenceBug2.scl
Merge commit 'a2a4242'
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / TypeInferenceBug2.scl
1 import "Prelude"\r
2 \r
3 distance (x1,y1) (x2,y2) = let dx = x1-x2\r
4                                dy = y1-y2\r
5                            in sqrt (dx*dx + dy*dy) print x1\r
6 --\r
7 5:31-5:35: Constrain Real ((a -> <b> ()) -> ((c -> <d> ()) -> <h> e -> <g> f) -> <j> i) contains free variables not mentioned in the type of the value.\r
8 5:52-5:57: Constrain Show a contains free variables not mentioned in the type of the value.\r
9 5:58-5:60: Unification of types failed.