about summary refs log tree commit diff stats
path: root/059to_text.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-13 00:07:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-13 00:07:38 -0700
commit431bbb1aa7944c5b67fa25d833d7ca992f72511d (patch)
tree52f8522713824fc7c8e7423f2efc7827983b6311 /059to_text.mu
parent2440e5bd77c573d32c38774713e0b6432744b8dc (diff)
downloadmu-431bbb1aa7944c5b67fa25d833d7ca992f72511d.tar.gz
3346
Process type abbreviations in *shape-shifting* function headers.
Diffstat (limited to '059to_text.mu')
-rw-r--r--059to_text.mu8
1 files changed, 4 insertions, 4 deletions
diff --git a/059to_text.mu b/059to_text.mu
index 25d5f55a..207ade78 100644
--- a/059to_text.mu
+++ b/059to_text.mu
@@ -6,26 +6,26 @@
 
 # 'shorter' variant of to-text, when you want to enable some sort of trimming
 # define it to be identical to 'to-text' by default
-def to-text-line x:_elem -> y:address:array:character [
+def to-text-line x:_elem -> y:text [
   local-scope
   load-ingredients
   y <- to-text x
 ]
 
 # variant for arrays (since we can't pass them around otherwise)
-def array-to-text-line x:address:array:_elem -> y:address:array:character [
+def array-to-text-line x:address:array:_elem -> y:text [
   local-scope
   load-ingredients
   y <- to-text *x
 ]
 
 scenario to-text-line-early-warning-for-static-dispatch [
-  x:address:array:character <- to-text-line 34
+  x:text <- to-text-line 34
   # just ensure there were no errors
 ]
 
 scenario array-to-text-line-early-warning-for-static-dispatch [
   n:address:array:number <- new number:type, 3
-  x:address:array:character <- array-to-text-line n
+  x:text <- array-to-text-line n
   # just ensure there were no errors
 ]