about summary refs log tree commit diff stats
path: root/054static_dispatch.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-17 00:06:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-17 00:06:04 -0700
commit7c9def3c5a35c07afdc95b383d6ff85a7c16ef0b (patch)
treec69ae0c6ec4fca45e23eed42ffbcce5fdbc71eae /054static_dispatch.cc
parent14b0932a54916349b531e804acc34a1c3caf70cf (diff)
downloadmu-7c9def3c5a35c07afdc95b383d6ff85a7c16ef0b.tar.gz
3376 - start maximally using all type abbreviations
It might be too much, particularly if students start peeking inside .mu
files early. But worth a shot for not just to iron out the kinks in the
abbreviation system.
Diffstat (limited to '054static_dispatch.cc')
-rw-r--r--054static_dispatch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/054static_dispatch.cc b/054static_dispatch.cc
index e6bbe207..82fc1de3 100644
--- a/054static_dispatch.cc
+++ b/054static_dispatch.cc
@@ -617,10 +617,10 @@ def foo a:boolean -> b:number [
 type string = address:array:character
 def main [
   local-scope
-  s:address:array:character <- new [abc]
+  s:text <- new [abc]
   1:number/raw <- foo s
 ]
-def foo a:address:array:character -> result:number [
+def foo a:text -> result:number [
   return 34
 ]
 # identical to previous variant once you take type abbreviation into account