Files
Nim/tests/generics/tmetafield.nim
2015-01-23 00:36:58 +01:00

19 lines
322 B
Nim

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