about summary refs log tree commit diff stats
path: root/046global.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-17 00:43:13 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-17 00:43:20 -0700
commit192d59d3bb9ee0baa1afd82cb5d0f352bdc6e403 (patch)
tree56ade9284cbd296ade90601a3a047c5cbdf3428c /046global.cc
parent08f4628e8b858120fe3547d8e5431d9abfe46bf8 (diff)
downloadmu-192d59d3bb9ee0baa1afd82cb5d0f352bdc6e403.tar.gz
3380
One more place we were missing expanding type abbreviations: inside
container definitions.
Diffstat (limited to '046global.cc')
-rw-r--r--046global.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/046global.cc b/046global.cc
index 8f36918a..8ab19574 100644
--- a/046global.cc
+++ b/046global.cc
@@ -12,16 +12,16 @@
 :(scenario global_space)
 def main [
   # pretend address:array:location; in practice we'll use new
-  10:number <- copy 0  # refcount
-  11:number <- copy 5  # length
+  10:num <- copy 0  # refcount
+  11:num <- copy 5  # length
   # pretend address:array:location; in practice we'll use new
-  20:number <- copy 0  # refcount
-  21:number <- copy 5  # length
+  20:num <- copy 0  # refcount
+  21:num <- copy 5  # length
   # actual start of this recipe
   global-space:address:array:location <- copy 20/unsafe
   default-space:address:array:location <- copy 10/unsafe
-  1:number <- copy 23
-  1:number/space:global <- copy 24
+  1:num <- copy 23
+  1:num/space:global <- copy 24
 ]
 # store to default space: 10 + (skip refcount and length) 2 + (index) 1
 +mem: storing 23 in location 13
@@ -64,8 +64,8 @@ if (x.name == "global-space") {
 :(scenario global_space_with_names)
 def main [
   global-space:address:array:location <- new location:type, 10
-  x:number <- copy 23
-  1:number/space:global <- copy 24
+  x:num <- copy 23
+  1:num/space:global <- copy 24
 ]
 # don't complain about mixing numeric addresses and names
 $error: 0