]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Transformation6.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Transformation6.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Transformation6.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Transformation6.scl
new file mode 100644 (file)
index 0000000..74aed46
--- /dev/null
@@ -0,0 +1,15 @@
+import "StandardLibrary"
+
+mapping relation Foo String String
+    
+rule DoIt where
+    @when
+    Foo ?a ?b
+    
+    @to
+    Foo ?b "c"
+
+main = transformation OneShotForward where
+    Foo "a" "b"
+--
+10:9-10:11: Cannot resolve the variable ?b using the source patterns.
\ No newline at end of file