diff options
author | Roger Shi <rogershijicheng@gmail.com> | 2015-09-09 21:32:29 +0800 |
---|---|---|
committer | Roger Shi <rogershijicheng@gmail.com> | 2015-09-09 21:32:29 +0800 |
commit | 58e1068f739a2115fe83db9bd6af34501eff1af4 (patch) | |
tree | 8bef9b641a7a1fc4bbe86f99af86dbec9be1a651 /tests | |
parent | 8f9ce5285fe7923da2ebecda61f83dc056013e19 (diff) | |
download | Nim-58e1068f739a2115fe83db9bd6af34501eff1af4.tar.gz |
test case for #2245
Diffstat (limited to 'tests')
-rw-r--r-- | tests/alias/talias.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/alias/talias.nim b/tests/alias/talias.nim index 6addc4704..810ea2095 100644 --- a/tests/alias/talias.nim +++ b/tests/alias/talias.nim @@ -30,7 +30,7 @@ type c: char se: seq[TA] -proc p(param1, param2: TC): TC = +proc p(param1, param2: TC, param3: var TC): TC = var local: TC plocal: ptr TC @@ -43,6 +43,7 @@ proc p(param1, param2: TC): TC = plocal2[] ?<| local param1 ?<| param2 + local ?<| param3 local.arr[0] !<| param1 local.arr !<| param1 @@ -62,5 +63,5 @@ var a <| a a !<| b -discard p(x, x) +discard p(x, x, x) |