]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/CHR4.scl
Support for () type in CHR relations
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / CHR4.scl
index a2abc6eb50e8dc704f10d5223b62a74557e6f531..dc0714973abbbd9da901fe4d91df7e94442bcd0e 100644 (file)
@@ -4,3 +4,17 @@ main = ()
     then True
 --
 3:10-3:18: Cannot solve the query.
+--
+import "Prelude"
+
+main = getRef r
+  where
+    r = ref 1
+  
+    when True
+    then Foo ()
+    
+    when Foo _
+    then r := 2
+--
+2