1234567891011121314151617 |
- discard """
- joinable: false
- cmd: "nim check $file"
- errormsg: "cannot bind another '=destroy' to: Foo; previous declaration was constructed implicitly"
- line: 15
- """
- type
- Foo[T] = object
- x: T
- proc main =
- var f: Foo[int]
- proc `=destroy`[T](f: var Foo[T]) =
- discard
|