]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Record1.scl
(refs #7307) Added features field to SCL module header
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Record1.scl
1 import "Prelude"
2
3 data XYS = XYS { x :: Double, y :: Double, s :: String }
4
5 len XYS {x = x, y = y} = sqrt (x*x + y*y)
6
7 main = len (XYS { x = 4, y = 3, s = "Hello world!" })
8 -- 
9 5.0