about summary refs log tree commit diff stats
path: root/cpp/026new
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/026new')
-rw-r--r--cpp/026new6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/026new b/cpp/026new
index ffb4429a..1991be5b 100644
--- a/cpp/026new
+++ b/cpp/026new
@@ -27,9 +27,11 @@ Type_number["type"] = 0;
 if (inst.operation == Recipe_number["new"]) {
   // first arg must be of type 'type'
   assert(inst.ingredients.size() >= 1);
+//?   cout << inst.ingredients[0].to_string() << '\n'; //? 1
   assert(isa_literal(inst.ingredients[0]));
-  assert(inst.ingredients[0].properties[0].second[0] == "type");
-  inst.ingredients[0].value = Type_number[inst.ingredients[0].name];
+  if (inst.ingredients[0].properties[0].second[0] == "type") {
+    inst.ingredients[0].value = Type_number[inst.ingredients[0].name];
+  }
   trace("new") << inst.ingredients[0].name << " -> " << inst.ingredients[0].value;
 }