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%2FImportRef.scl;h=17ce1ef2450b554d4b4d5c5ff71a64d191e70086;hp=9fb6f62d2b206a90ad186c35618981a45c3b2299;hb=172abed5dbf73c1304a7a95bb8504ea293556948;hpb=c08364c64a0bb53c45c052a3e4cea8702bbd69a0 diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ImportRef.scl b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ImportRef.scl index 9fb6f62d2..17ce1ef24 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ImportRef.scl +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/ImportRef.scl @@ -1,18 +1,18 @@ -importJava "org.simantics.scl.runtime.procedure.Ref" where - data Ref a - - @JavaName "" - ref :: a -> (Ref a) - - @JavaName "value" - getRef :: Ref a -> a - - @JavaName "value" - (:=) :: Ref a -> a -> () - -main = do - r = ref (13 :: Integer) - r := (14 :: Integer) - getRef r --- +importJava "org.simantics.scl.runtime.procedure.Ref" where + data Ref a + + @JavaName "" + ref :: a -> (Ref a) + + @JavaName "value" + getRef :: Ref a -> a + + @JavaName "value" + (:=) :: Ref a -> a -> () + +main = do + r = ref (13 :: Integer) + r := (14 :: Integer) + getRef r +-- 14 \ No newline at end of file