This reverts commit 1655103d83.
This commit is contained in:
parent
ddc5f8fbcf
commit
3ce27511ad
1 changed files with 0 additions and 24 deletions
|
|
@ -1,24 +0,0 @@
|
|||
discard """
|
||||
matrix: "--gc:refc; --gc:arc"
|
||||
"""
|
||||
|
||||
# bug #16607
|
||||
|
||||
type
|
||||
O {.requiresInit.} = object
|
||||
initialized: bool
|
||||
|
||||
proc `=destroy`(o: var O) =
|
||||
doAssert o.initialized, "O was destroyed before initialization!"
|
||||
|
||||
proc initO(): O =
|
||||
O(initialized: true)
|
||||
|
||||
proc pair(): tuple[a, b: O] =
|
||||
result.a = initO()
|
||||
result.b = initO()
|
||||
|
||||
proc main() =
|
||||
discard pair()
|
||||
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue