summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorRoger Shi <rogershijicheng@gmail.com>2015-09-09 21:32:29 +0800
committerRoger Shi <rogershijicheng@gmail.com>2015-09-09 21:32:29 +0800
commit58e1068f739a2115fe83db9bd6af34501eff1af4 (patch)
tree8bef9b641a7a1fc4bbe86f99af86dbec9be1a651 /tests
parent8f9ce5285fe7923da2ebecda61f83dc056013e19 (diff)
downloadNim-58e1068f739a2115fe83db9bd6af34501eff1af4.tar.gz
test case for #2245
Diffstat (limited to 'tests')
-rw-r--r--tests/alias/talias.nim5
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)