about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-04 18:54:59 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-04 18:54:59 -0800
commit8de2764da9fa8d195e53948bc3aa8dcb84f57321 (patch)
tree9cdab53b366108788629cf9ff978d25836831056
parent5d4a1d3b80066711a00b111a4832eecdb547024f (diff)
downloadmu-8de2764da9fa8d195e53948bc3aa8dcb84f57321.tar.gz
2355
-rw-r--r--056recipe_header.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/056recipe_header.cc b/056recipe_header.cc
index ddb2ccd1..cad74e5d 100644
--- a/056recipe_header.cc
+++ b/056recipe_header.cc
@@ -199,6 +199,20 @@ if (curr.name == "reply" && curr.ingredients.empty()) {
   }
 }
 
+:(scenario explicit_reply_ignores_header)
+recipe main [
+  1:number/raw, 2:number/raw <- add2 3, 5
+]
+recipe add2 a:number, b:number -> y:number, z:number [
+  local-scope
+  load-ingredients
+  y <- add a, b
+  z <- subtract a, b
+  reply a, z
+]
++mem: storing 3 in location 1
++mem: storing -2 in location 2
+
 :(scenario reply_on_fallthrough_based_on_header)
 recipe main [
   1:number/raw <- add2 3, 5