parent
45bc6954c5
commit
45d1e55e72
2 changed files with 22 additions and 1 deletions
|
|
@ -154,4 +154,14 @@ proc caseobj_test_sink: TCaseObj =
|
|||
|
||||
|
||||
echo "---"
|
||||
discard caseobj_test_sink()
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue