summary refs log tree commit diff stats
path: root/tests/generics/tmetafield.nim
blob: 42353006d0dcc722f2291e542bd2985696aba96b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  cmd: "nimrod check $# $#"
  msg: "'proc' is not a concrete type"
  msg: "'Foo' is not a concrete type."
  msg: "invalid type: 'TBaseMed'"
"""

type
  Foo[T] = object
    x: T

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

var a: TBaseMed

# issue 188