mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
fixes #24764 It now consumes the `conv(x)` arg for the explicit sinking. So the explicit sinking is kept as it is. Follows up https://github.com/nim-lang/Nim/pull/20585 Related issues: https://github.com/nim-lang/Nim/issues/20572 Probably the same needs to be applied to explicit `copy` to prevent a copy turning into a sink
4 lines
201 B
Nim
4 lines
201 B
Nim
type QObject* {.inheritable.} = object
|
|
proc `=destroy`(self: var QObject) = discard
|
|
proc `=sink`(dest: var QObject, source: QObject) = discard
|
|
proc `=copy`(dest: var QObject, source: QObject) {.error.} |