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

type
  Foo[T] = object
    x: T

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

var a: TBaseMed

# issue 188
#if !defined(__int8_t_defined) && !defined(__dietlibc__) #define __int8_t_defined typedef char int8_t; typedef short int int16_t; typedef int int32_t; typedef long long int int64_t; #endif void *alloca(size_t); #endif