t5167_5.nim 312 B

1234567891011121314151617181920212223242526
  1. discard """
  2. cmd: "nim check $file"
  3. errormsg: "'t' has unspecified generic parameters"
  4. nimout: '''
  5. t5167_5.nim(20, 9) Error: 't' has unspecified generic parameters
  6. '''
  7. """
  8. template t[B]() =
  9. echo "foo1"
  10. macro m[T]: untyped = nil
  11. proc bar(x: proc (x: int)) =
  12. echo "bar"
  13. let x = t
  14. bar t
  15. let y = m
  16. bar m