浏览代码

Better check for whether something is an Attribute or not

Yentl Van Tendeloo 8 年之前
父节点
当前提交
513a23dc5e
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 二进制
      bootstrap/bootstrap.m.gz
  2. 1 1
      bootstrap/ramify.alc

二进制
bootstrap/bootstrap.m.gz


+ 1 - 1
bootstrap/ramify.alc

@@ -184,7 +184,7 @@ Element function ramify(model : Element):
 			// Primitive values themselves are not copied, so skip that here
 
 			attr_name = read_attribute(model, type_name, "name")
-			if (read_type(model["metamodel"], type_name) == "Attribute"):
+			if (is_nominal_instance(model["metamodel"], type_name, "Attribute")):
 				old_source = reverseKeyLookup(model["model"], read_edge_src(entry))
 
 				if (set_in(copied_attributes, attr_name)):