summary refs log tree commit diff stats
path: root/tests/generics/tgenericlambda.nim
diff options
context:
space:
mode:
authorKonstantin Zaitsev <konstantin.zaitsev@xored.com>2016-03-03 17:47:36 +0600
committerKonstantin Zaitsev <konstantin.zaitsev@xored.com>2016-03-03 17:47:36 +0600
commitf73fa61c98c19fec9f5539220908844a9f705dc8 (patch)
tree799e7a9834cc9270cfcc06858032cf2b2eaa7b87 /tests/generics/tgenericlambda.nim
parent6f0cab7060daa5cf1aa47d019d3e24a4e9453c15 (diff)
parent84cd3d9dc46bcb03c441cbf7492351ddb1516dc8 (diff)
downloadNim-f73fa61c98c19fec9f5539220908844a9f705dc8.tar.gz
Merge remote-tracking branch 'upstream/devel' into devel
Diffstat (limited to 'tests/generics/tgenericlambda.nim')
-rw-r--r--tests/generics/tgenericlambda.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/generics/tgenericlambda.nim b/tests/generics/tgenericlambda.nim
index eb6ada3e5..41ee74557 100644
--- a/tests/generics/tgenericlambda.nim
+++ b/tests/generics/tgenericlambda.nim
@@ -5,15 +5,15 @@ discard """
 proc test(x: proc (a, b: int): int) =
   echo x(5, 5)
 
-test(proc (a, b): auto = a + b)
+test(proc (a, b: auto): auto = a + b)
 
-test do (a, b) -> auto: a + b
+test do (a, b: auto) -> auto: a + b
 
 proc foreach[T](s: seq[T], body: proc(x: T)) =
   for e in s:
     body(e)
 
-foreach(@[1,2,3]) do (x):
+foreach(@[1,2,3]) do (x: auto):
   echo x
 
 proc foo =