destuctors are experimental; 'func' is now a keyword
This commit is contained in:
parent
74fdd5c2ea
commit
85cc5a6a1f
9 changed files with 20 additions and 9 deletions
|
|
@ -22,6 +22,8 @@ myobj destroyed
|
|||
'''
|
||||
"""
|
||||
|
||||
{.experimental.}
|
||||
|
||||
type
|
||||
TMyObj = object
|
||||
x, y: int
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ discard """
|
|||
errormsg: " usage of a type with a destructor in a non destructible context"
|
||||
"""
|
||||
|
||||
{.experimental.}
|
||||
|
||||
type
|
||||
TMyObj = object
|
||||
x, y: int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue