about summary refs log tree commit diff stats
path: root/sandbox/010-errors.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-14 12:31:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-14 12:31:27 -0700
commit3c393fd2449ebdd362f39873106199f089ed6718 (patch)
treefc41395e633c2c75fb8be6d250a21fbf22121561 /sandbox/010-errors.mu
parent38104e76bdf9f50c803da9cd81653c0786f836a7 (diff)
downloadmu-3c393fd2449ebdd362f39873106199f089ed6718.tar.gz
2781
Diffstat (limited to 'sandbox/010-errors.mu')
-rw-r--r--sandbox/010-errors.mu7
1 files changed, 4 insertions, 3 deletions
diff --git a/sandbox/010-errors.mu b/sandbox/010-errors.mu
index ab2fb98b..1a84764d 100644
--- a/sandbox/010-errors.mu
+++ b/sandbox/010-errors.mu
@@ -287,7 +287,8 @@ scenario run-updates-errors-for-shape-shifting-recipes [
   1:address:shared:array:character <- new [recipe foo x:_elem -> z:_elem [
 local-scope
 load-ingredients
-z <- add x, [a]
+y:address:number <- copy 0
+z <- add x, y
 ]]
   2:address:shared:array:character <- new [foo 2]
   3:address:shared:programming-environment-data <- new-programming-environment screen:address:shared:screen, 2:address:shared:array:character
@@ -302,7 +303,7 @@ z <- add x, [a]
     .0                                                x.
     .foo 2                                             .
     .foo_2: 'add' requires number ingredients, but got↩.
-    . [a]                                              .
+    . y                                                .
     .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  .
   ]
@@ -321,7 +322,7 @@ z <- add x, [a]
     .0                                                x.
     .foo 2                                             .
     .foo_2: 'add' requires number ingredients, but got↩.
-    . [a]                                              .
+    . y                                                .
     .━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━.
     .                                                  .
   ]