t5167_5.nim 439 B

1234567891011121314151617181920212223242526
  1. discard """
  2. cmd: "nim check $file"
  3. errormsg: "'t' has unspecified generic parameters"
  4. nimout: '''
  5. t5167_5.nim(10, 16) Error: expression 'system' has no type (or is ambiguous)
  6. t5167_5.nim(21, 9) Error: 't' has unspecified generic parameters
  7. '''
  8. """
  9. # issue #11942
  10. discard newSeq[system]()
  11. # issue #5167
  12. template t[B]() =
  13. echo "foo1"
  14. macro m[T]: untyped = nil
  15. proc bar(x: proc (x: int)) =
  16. echo "bar"
  17. let x = t
  18. bar t
  19. let y = m
  20. bar m