X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Finternal%2Felaboration%2Fconstraints%2FConstraintSolver.java;h=69b8e7e647f2a393e988204d4092fa7306d4aa51;hp=87f75a0411629a859347245ea48af94649161697;hb=b4c720aaf27b84a479d800ed8a1e130f924213ef;hpb=3fb26ddbd489f862bf8c28e78834c98bcc29382e diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/elaboration/constraints/ConstraintSolver.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/elaboration/constraints/ConstraintSolver.java index 87f75a041..69b8e7e64 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/elaboration/constraints/ConstraintSolver.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/elaboration/constraints/ConstraintSolver.java @@ -153,7 +153,7 @@ public class ConstraintSolver { throw new InternalCompilerError(); } for(Constraint constraint : group) { - Reduction reduction = environment.reduce(constraint.constraint); + Reduction reduction = environment.reduce(constraint.demandLocation, constraint.constraint); if(reduction.demands.length > 0) throw new InternalCompilerError(); constraint.setGenerator(Constraint.STATE_HAS_INSTANCE,