parent
a519b78c18
commit
697d1d1213
|
@ -87,6 +87,7 @@ void check_type(set<reagent, name_lt>& known_types, const reagent& x, const reci
|
|||
}
|
||||
if (!types_strictly_match(known_types.find(x)->type, x.type)) {
|
||||
raise << maybe(caller.name) << "'" << x.name << "' used with multiple types\n" << end();
|
||||
raise << " " << to_string(known_types.find(x)->type) << " vs " << to_string(x.type) << '\n' << end();
|
||||
return;
|
||||
}
|
||||
if (is_mu_array(x)) {
|
||||
|
|
|
@ -248,6 +248,7 @@ string insert_new_variant(recipe_ordinal exemplar, const instruction& inst, cons
|
|||
put(Recipe, new_recipe_ordinal, /*copy*/get(Recipe, exemplar));
|
||||
recipe& new_recipe = get(Recipe, new_recipe_ordinal);
|
||||
new_recipe.name = new_name;
|
||||
new_recipe.ordinal = new_recipe_ordinal;
|
||||
new_recipe.is_autogenerated = true;
|
||||
trace(9993, "transform") << "switching " << inst.name << " to specialized " << header_label(new_recipe) << end();
|
||||
|
||||
|
|
Loading…
Reference in New Issue