about summary refs log tree commit diff stats
path: root/static_dispatch.mu
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 /static_dispatch.mu
parent08f4628e8b858120fe3547d8e5431d9abfe46bf8 (diff)
downloadmu-192d59d3bb9ee0baa1afd82cb5d0f352bdc6e403.tar.gz
3380
One more place we were missing expanding type abbreviations: inside
container definitions.
Diffstat (limited to 'static_dispatch.mu')
-rw-r--r--static_dispatch.mu10
1 files changed, 5 insertions, 5 deletions
diff --git a/static_dispatch.mu b/static_dispatch.mu
index 9ef3e33c..7aec6fa1 100644
--- a/static_dispatch.mu
+++ b/static_dispatch.mu
@@ -1,10 +1,10 @@
-def test a:number -> b:number [
+def test a:num -> b:num [
   local-scope
   load-ingredients
   b <- add a, 1
 ]
 
-def test a:number, b:number -> c:number [
+def test a:num, b:num -> c:num [
   local-scope
   load-ingredients
   c <- add a, b
@@ -12,10 +12,10 @@ def test a:number, b:number -> c:number [
 
 def main [
   local-scope
-  a:number <- test 3  # selects single-ingredient version
+  a:num <- test 3  # selects single-ingredient version
   $print a, 10/newline
-  b:number <- test 3, 4  # selects double-ingredient version
+  b:num <- test 3, 4  # selects double-ingredient version
   $print b, 10/newline
-  c:number <- test 3, 4, 5  # prefers double- to single-ingredient version
+  c:num <- test 3, 4, 5  # prefers double- to single-ingredient version
   $print c, 10/newline
 ]