diff options
Diffstat (limited to 'tests/destructor/tdestructor.nim')
-rw-r--r-- | tests/destructor/tdestructor.nim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/destructor/tdestructor.nim b/tests/destructor/tdestructor.nim index b6d60323c..9fd47fe00 100644 --- a/tests/destructor/tdestructor.nim +++ b/tests/destructor/tdestructor.nim @@ -154,4 +154,14 @@ proc caseobj_test_sink: TCaseObj = echo "---" -discard caseobj_test_sink() \ No newline at end of file +discard caseobj_test_sink() + +# issue #14315 + +type Vector*[T] = object + x1: int + # x2: T # uncomment will remove error + +# proc `=destroy`*(x: var Vector[int]) = discard # this will remove error +proc `=destroy`*[T](x: var Vector[T]) = discard +var a: Vector[int] # Error: unresolved generic parameter |