mirror of
https://github.com/erg-lang/erg.git
synced 2025-12-23 05:36:48 +00:00
17 lines
222 B
Python
17 lines
222 B
Python
i = !0
|
|
|
|
C = Class()
|
|
C.
|
|
__init__! self =
|
|
print! "initialize:", self
|
|
i.inc!()
|
|
__del__! self =
|
|
print! "delete:", self
|
|
i.dec!()
|
|
|
|
f() =
|
|
c = C.new() # ERR
|
|
log c
|
|
|
|
f()
|
|
assert i == 0
|