浏览代码

Call the constructors of the type, not of ourself!

Yentl Van Tendeloo 9 年之前
父节点
当前提交
bd060c7100
共有 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