mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
feat!: change constructor syntax: C::__new__()
-> C()
This commit is contained in:
parent
36fcc8cb79
commit
fce88717b0
16 changed files with 90 additions and 56 deletions
|
@ -20,7 +20,7 @@ Point3D.
|
|||
# Overloading is prohibited by default. Remove this decorator and check for errors.
|
||||
@Override
|
||||
new x, y, z =
|
||||
Point3D::__new__ {x; y; z}
|
||||
Point3D {x; y; z}
|
||||
@Override
|
||||
norm self = self::x**2 + self::y**2 + self::z**2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue