diff options
Diffstat (limited to 'static_dispatch.mu')
-rw-r--r-- | static_dispatch.mu | 10 |
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 ] |