tstatic_callable_error.nim 255 B

123456789101112131415
  1. # bug #16987
  2. discard """
  3. errormsg: "cannot evaluate at compile time: inp"
  4. nimout: '''
  5. tstatic_callable_error.nim(14, 21) Error: cannot evaluate at compile time: inp'''
  6. """
  7. # line 10
  8. proc getNum(a: int): int = a
  9. let inp = 123
  10. echo (static getNum(inp))