summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-02-17 00:47:45 +0200
committerZahary Karadjov <zahary@gmail.com>2014-02-17 00:47:45 +0200
commitb80503814d3ad37023b27cc8b2d78aed0c10bfcb (patch)
treef07f3505b3fc99cf891e3a1fb8ab5a43d9d56838 /tests
parent74f49014303a87a8cf649d6d0aec041d683509cd (diff)
downloadNim-b80503814d3ad37023b27cc8b2d78aed0c10bfcb.tar.gz
fix #188
Diffstat (limited to 'tests')
-rw-r--r--tests/generics/tmetafield.nim18
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