diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-02-17 00:47:45 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-02-17 00:47:45 +0200 |
commit | b80503814d3ad37023b27cc8b2d78aed0c10bfcb (patch) | |
tree | f07f3505b3fc99cf891e3a1fb8ab5a43d9d56838 /tests | |
parent | 74f49014303a87a8cf649d6d0aec041d683509cd (diff) | |
download | Nim-b80503814d3ad37023b27cc8b2d78aed0c10bfcb.tar.gz |
fix #188
Diffstat (limited to 'tests')
-rw-r--r-- | tests/generics/tmetafield.nim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/generics/tmetafield.nim b/tests/generics/tmetafield.nim new file mode 100644 index 000000000..5d2ec9b33 --- /dev/null +++ b/tests/generics/tmetafield.nim @@ -0,0 +1,18 @@ +discard """ + cmd: "nimrod check $# $#" + msg: "'proc' is not a concrete type" + msg: "'seq[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 |