소스 검색

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