tvoidcontext.nim 227 B

12345678910111213
  1. discard """
  2. errormsg: '''expression '"invalid"' is of type 'string' and has to be used (or discarded)'''
  3. line: 12
  4. """
  5. proc valid*(): string =
  6. let x = 317
  7. "valid"
  8. proc invalid*(): string =
  9. result = "foo"
  10. "invalid"