]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/TypeInferenceBug2.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / TypeInferenceBug2.scl
1 import "Prelude"
2
3 distance (x1,y1) (x2,y2) = let dx = x1-x2
4                                dy = y1-y2
5                            in sqrt (dx*dx + dy*dy) print x1
6 --
7 5:31-5:35: Constrain Real ((a -> <Proc> ()) -> <e> b -> <d> c) contains free variables not mentioned in the type of the value.
8 5:58-5:60: Expected <a> got <b>.