about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-27 08:58:26 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-27 08:58:26 -0700
commitfb782b6380eb02d947851350e67747ce6126879b (patch)
treeb6a9e7d9756b5fef9ba8f9e5d211be21a321ab49
parent414b452ffb854c480e179727fba2c7f5ee502adc (diff)
downloadmu-fb782b6380eb02d947851350e67747ce6126879b.tar.gz
3417
-rw-r--r--063array.mu5
1 files changed, 3 insertions, 2 deletions
diff --git a/063array.mu b/063array.mu
index d6dac148..205e03e9 100644
--- a/063array.mu
+++ b/063array.mu
@@ -1,7 +1,7 @@
 scenario array-from-args [
   run [
     local-scope
-    x:text <- new-array 0, 1, 2
+    x:&:@:char <- new-array 0, 1, 2
     10:@:char/raw <- copy *x
   ]
   memory-should-contain [
@@ -13,7 +13,8 @@ scenario array-from-args [
 ]
 
 # create an array out of a list of scalar args
-def new-array -> result:text [
+# hacky; needs to be generic
+def new-array -> result:&:@:char [
   local-scope
   capacity:num <- copy 0
   {