diff options
author | mfxmfx <test@oberhumer.com> | 2017-01-11 13:40:10 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-01-11 13:40:10 +0100 |
commit | 86993721095b3ddfb5e473e8f4d52084c18422ba (patch) | |
tree | 52036be8121fbae7852184ca50a412b7537f1775 /tests | |
parent | d356c37185acdb7dec1feff5454209612e9ea9ad (diff) | |
download | Nim-86993721095b3ddfb5e473e8f4d52084c18422ba.tar.gz |
Correct the spelling of the word 'overridden'. (#5212)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/generics/t88.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/generics/t88.nim b/tests/generics/t88.nim index 35bdeb8f1..280a346c5 100644 --- a/tests/generics/t88.nim +++ b/tests/generics/t88.nim @@ -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 |