mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-01 13:09:14 +00:00
13 lines
255 B
Nim
13 lines
255 B
Nim
discard """
|
|
matrix: "--mm:refc; --mm:orc --deepcopy:on"
|
|
errormsg: "'deepCopy' is not available for type <NoCopy>"
|
|
file: "system.nim"
|
|
"""
|
|
|
|
type NoCopy = object
|
|
|
|
proc `=copy`(a: var NoCopy; b: NoCopy) {.error.}
|
|
|
|
var a = new NoCopy
|
|
var b = deepCopy(a)
|