t15667.nim 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. discard """
  2. cmd: "nim check $options $file"
  3. action: "reject"
  4. nimout: '''
  5. t15667.nim(23, 5) Error: invalid indentation, maybe you forgot a '=' at t15667.nim(22, 13) ?
  6. t15667.nim(28, 5) Error: invalid indentation, maybe you forgot a '=' at t15667.nim(26, 13) ?
  7. t15667.nim(33, 5) Error: invalid indentation, maybe you forgot a '=' at t15667.nim(31, 25) ?
  8. t15667.nim(42, 5) Error: invalid indentation, maybe you forgot a '=' at t15667.nim(38, 12) ?
  9. t15667.nim(56, 5) Error: invalid indentation, maybe you forgot a '=' at t15667.nim(55, 13) ?
  10. t15667.nim(61, 48) Error: expression expected, but found ','
  11. '''
  12. """
  13. # line 20
  14. block:
  15. proc fn1()
  16. discard
  17. block:
  18. proc fn2()
  19. #
  20. discard
  21. block:
  22. proc fn3() {.exportc.}
  23. #
  24. discard
  25. block: # complex example
  26. proc asdfasdfsd() {. exportc,
  27. inline
  28. .} # foo
  29. #[
  30. bar
  31. ]#
  32. discard
  33. block: # xxx this doesn't work yet (only a bare `invalid indentation` error)
  34. proc fn5()
  35. ##
  36. discard
  37. block: # ditto
  38. proc fn6*()
  39. ## foo bar
  40. runnableExamples: discard
  41. block:
  42. proc fn8()
  43. runnableExamples:
  44. discard
  45. discard
  46. # semiStmtList loop issue
  47. proc bar(k:static bool):SomeNumber = (when k: 3, else: 3.0)