t5167_5.nim 614 B

1234567891011121314151617181920212223242526
  1. discard """
  2. cmd: "nim check --mm:refc $file"
  3. """
  4. # issue #11942
  5. discard newSeq[system]() #[tt.Error
  6. ^ expression 'system' has no type (or is ambiguous)]#
  7. # issue #5167
  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 #[tt.Error
  14. ^ 't' has unspecified generic parameters]#
  15. bar t #[tt.Error
  16. ^ type mismatch: got <template [*missing parameters*]()>]#
  17. let y = m #[tt.Error
  18. ^ 'm' has unspecified generic parameters]#
  19. bar m #[tt.Error
  20. ^ type mismatch: got <macro [*missing parameters*](): untyped{.noSideEffect, gcsafe.}>]#