mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
Update trait.er
This commit is contained in:
parent
2fe696fb82
commit
2dae0f4be9
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ Point2D|Point2D <: Norm|.
|
|||
norm self = self::x**2 + self::y**2
|
||||
|
||||
Point3D = Class {x = Int; y = Int; z = Int}
|
||||
Point3D|Point2D <: Norm|.
|
||||
Point3D|Point3D <: Norm|.
|
||||
norm self = self::x**2 + self::y**2 + self::z**2
|
||||
|
||||
norm|T <: Norm| x: T = x.norm()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue