X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FRecord4.scl;fp=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2Fscl%2FRecord4.scl;h=7b370124ce53185786052de26a32a186167a1bfa;hp=0000000000000000000000000000000000000000;hb=131be5c413e1f9dc652b6b46c763625b30ad8350;hpb=e3cd3cd49bc2585f57d030a8743f9012f6161a92 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Record4.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Record4.scl new file mode 100644 index 000000000..7b370124c --- /dev/null +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Record4.scl @@ -0,0 +1,11 @@ +// module Module +data Foo = Foo { x :: Integer } +-- +import "Prelude" +import "Module" as M + +f = M.Foo { x = 3 } +main = match f with + M.Foo { x } -> x +-- +3 \ No newline at end of file