Преглед на файлове

Call the constructors of the type, not of ourself!

Yentl Van Tendeloo преди 9 години
родител
ревизия
2cf3b1ca91
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      bootstrap/conformance_scd.alc

+ 1 - 1
bootstrap/conformance_scd.alc

@@ -185,7 +185,7 @@ String function conformance_scd(model : Element):
 								return "Upper cardinality violation for incoming edge at " + model_name
 
 			Element constraint_function
-			constraint_function = read_attribute(model, model_name, "constraint")
+			constraint_function = read_attribute(model["metamodel"], reverseKeyLookup(model["metamodel"]["model"], dict_read_node(model["type_mapping"], element)), "constraint")
 			if (element_neq(constraint_function, read_root())):
 				String result
 				// TODO define the local_constraint execution function