tmetafield.nim 476 B

12345678910111213141516171819202122232425262728293031
  1. discard """
  2. cmd: "nim check $options $file"
  3. action: "reject"
  4. nimout: '''
  5. tmetafield.nim(26, 5) Error: 'proc' is not a concrete type; for a callback without parameters use 'proc()'
  6. tmetafield.nim(27, 5) Error: 'Foo' is not a concrete type
  7. tmetafield.nim(29, 5) Error: invalid type: 'proc' in this context: 'TBaseMed' for var
  8. '''
  9. """
  10. # bug #188
  11. # line 20
  12. type
  13. Foo[T] = object
  14. x: T
  15. TBaseMed = object
  16. doSmth: proc
  17. data: seq[Foo]
  18. var a: TBaseMed