tstmtlist.nim 413 B

12345678910
  1. discard """
  2. action: compile
  3. """
  4. proc foo(x: proc()) = x()
  5. foo: echo "a" #[tt.Warning
  6. ^ statement list expression assumed to be anonymous proc; this is deprecated, use `do (): ...` or `proc () = ...` instead [StmtListLambda]]#
  7. foo do: echo "b" #[tt.Warning
  8. ^ statement list expression assumed to be anonymous proc; this is deprecated, use `do (): ...` or `proc () = ...` instead [StmtListLambda]]#