t9255.nim 235 B

1234567891011121314
  1. discard """
  2. errormsg: '''
  3. type mismatch: got <proc (a0: int): string{.noSideEffect, gcsafe, locks: 0.}>
  4. '''
  5. line: 13
  6. """
  7. macro fun(a: static float): untyped =
  8. discard
  9. when true:
  10. proc bar(a0: int): string = discard
  11. fun(bar)