summary refs log tree commit diff stats
path: root/tests/errmsgs/t19882.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/t19882.nim')
-rw-r--r--tests/errmsgs/t19882.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/errmsgs/t19882.nim b/tests/errmsgs/t19882.nim
new file mode 100644
index 000000000..1f2f95ab7
--- /dev/null
+++ b/tests/errmsgs/t19882.nim
@@ -0,0 +1,10 @@
+
+discard """
+  errormsg: "cannot instantiate 'A[T, P]' inside of type definition: 'init'; Maybe generic arguments are missing?"
+"""
+type A[T,P] = object
+  b:T
+  c:P
+proc init(): ref A =      
+  new(result)
+var a = init()