diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 12:55:10 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-17 12:55:10 -0700 |
commit | 760f683f2755038a1b0c16522f5001b889096aa5 (patch) | |
tree | e07afd384d45be93d81fb4c1788b332fe05799a0 /054static_dispatch.cc | |
parent | 80df524b566a708551f752ce8b82e21738591651 (diff) | |
download | mu-760f683f2755038a1b0c16522f5001b889096aa5.tar.gz |
3389
Diffstat (limited to '054static_dispatch.cc')
-rw-r--r-- | 054static_dispatch.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/054static_dispatch.cc b/054static_dispatch.cc index 10c1f50f..18774602 100644 --- a/054static_dispatch.cc +++ b/054static_dispatch.cc @@ -452,13 +452,13 @@ $error: 0 :(scenario static_dispatch_works_with_compound_type_containing_container_defined_after_first_use) def main [ - x:address:foo <- new foo:type + x:&:foo <- new foo:type test x ] container foo [ x:num ] -def test a:address:foo -> z:num [ +def test a:&:foo -> z:num [ local-scope load-ingredients z:num <- get *a, x:offset @@ -467,10 +467,10 @@ $error: 0 :(scenario static_dispatch_works_with_compound_type_containing_container_defined_after_second_use) def main [ - x:address:foo <- new foo:type + x:&:foo <- new foo:type test x ] -def test a:address:foo -> z:num [ +def test a:&:foo -> z:num [ local-scope load-ingredients z:num <- get *a, x:offset @@ -484,7 +484,7 @@ $error: 0 def main [ 1:num <- foo 0 ] -def foo x:address:num -> y:num [ +def foo x:&:num -> y:num [ return 34 ] def foo x:num -> y:num [ @@ -582,12 +582,12 @@ def foo x:num -> y:num [ load-ingredients return 34 ] -def foo x:address:num -> y:num [ +def foo x:&:num -> y:num [ local-scope load-ingredients return 35 ] -def! foo x:address:num -> y:num [ +def! foo x:&:num -> y:num [ local-scope load-ingredients return 36 |