mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
* test disable do: block lambda lifting * fix last test [skip ci] * deprecate `do:` meaning `do ():` + misc cleanup closes https://github.com/nim-lang/RFCs/issues/486 * oops * fix * no idea what could be causing nimsuggest failure other than this * ensure ci works
10 lines
413 B
Nim
10 lines
413 B
Nim
discard """
|
|
action: compile
|
|
"""
|
|
|
|
proc foo(x: proc()) = x()
|
|
foo: echo "a" #[tt.Warning
|
|
^ statement list expression assumed to be anonymous proc; this is deprecated, use `do (): ...` or `proc () = ...` instead [StmtListLambda]]#
|
|
foo do: echo "b" #[tt.Warning
|
|
^ statement list expression assumed to be anonymous proc; this is deprecated, use `do (): ...` or `proc () = ...` instead [StmtListLambda]]#
|