Correct the spelling of the word 'overridden'. (#5212)
This commit is contained in:
parent
d356c37185
commit
8699372109
2 changed files with 4 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ proc new[V](t: typedesc[BaseClass], v: V): BaseClass[V] =
|
|||
BaseClass[V](b: v)
|
||||
|
||||
proc baseMethod[V](v: BaseClass[V]): V = v.b
|
||||
proc overridedMethod[V](v: BaseClass[V]): V = v.baseMethod
|
||||
proc overriddenMethod[V](v: BaseClass[V]): V = v.baseMethod
|
||||
|
||||
type
|
||||
ChildClass[V] = object of BaseClass[V]
|
||||
|
|
@ -17,12 +17,12 @@ type
|
|||
proc new[V](t: typedesc[ChildClass], v1, v2: V): ChildClass[V] =
|
||||
ChildClass[V](b: v1, c: v2)
|
||||
|
||||
proc overridedMethod[V](v: ChildClass[V]): V = v.c
|
||||
proc overriddenMethod[V](v: ChildClass[V]): V = v.c
|
||||
|
||||
let c = ChildClass[string].new("Base", "Child")
|
||||
|
||||
assert c.baseMethod == "Base"
|
||||
assert c.overridedMethod == "Child"
|
||||
assert c.overriddenMethod == "Child"
|
||||
|
||||
|
||||
# bug #4528
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue