summary refs log blame commit diff stats
path: root/tests/generics/tmetafield.nim
blob: 7a2375abe3b788da22639d20506d76f90b7fb1db (plain) (tree)
1
2
3
4
5
           
                                 

                                           
                                                              












                    
discard """
  cmd: "nim check $options $file"
  errormsg: "'proc' is not a concrete type"
  errormsg: "'Foo' is not a concrete type."
  errormsg: "invalid type: 'proc' in this context: 'TBaseMed'"
"""

type
  Foo[T] = object
    x: T

  TBaseMed =  object
    doSmth: proc
    data: seq[Foo]

var a: TBaseMed

# issue 188