diff options
author | Konstantin Zaitsev <konstantin.zaitsev@xored.com> | 2016-03-03 17:47:36 +0600 |
---|---|---|
committer | Konstantin Zaitsev <konstantin.zaitsev@xored.com> | 2016-03-03 17:47:36 +0600 |
commit | f73fa61c98c19fec9f5539220908844a9f705dc8 (patch) | |
tree | 799e7a9834cc9270cfcc06858032cf2b2eaa7b87 /tests/generics/tgenericlambda.nim | |
parent | 6f0cab7060daa5cf1aa47d019d3e24a4e9453c15 (diff) | |
parent | 84cd3d9dc46bcb03c441cbf7492351ddb1516dc8 (diff) | |
download | Nim-f73fa61c98c19fec9f5539220908844a9f705dc8.tar.gz |
Merge remote-tracking branch 'upstream/devel' into devel
Diffstat (limited to 'tests/generics/tgenericlambda.nim')
-rw-r--r-- | tests/generics/tgenericlambda.nim | 6 |
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 = |