diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 00:06:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 00:06:04 -0700 |
commit | 7c9def3c5a35c07afdc95b383d6ff85a7c16ef0b (patch) | |
tree | c69ae0c6ec4fca45e23eed42ffbcce5fdbc71eae /054static_dispatch.cc | |
parent | 14b0932a54916349b531e804acc34a1c3caf70cf (diff) | |
download | mu-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.cc | 4 |
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 |