diff options
Diffstat (limited to 'tests/generics/t8270.nim')
-rw-r--r-- | tests/generics/t8270.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/generics/t8270.nim b/tests/generics/t8270.nim new file mode 100644 index 000000000..1e731d1d4 --- /dev/null +++ b/tests/generics/t8270.nim @@ -0,0 +1,7 @@ +discard """ + errormsg: "cannot instantiate: \'T\'" + line: 6 +""" + +proc m[T](x: T): int = discard +echo [m] |