fixes #4528
This commit is contained in:
parent
ce4d9e40fe
commit
09f122f68c
2 changed files with 45 additions and 30 deletions
|
|
@ -23,3 +23,11 @@ let c = ChildClass[string].new("Base", "Child")
|
|||
|
||||
assert c.baseMethod == "Base"
|
||||
assert c.overridedMethod == "Child"
|
||||
|
||||
|
||||
# bug #4528
|
||||
type GenericBase[T] = ref object of RootObj
|
||||
type GenericSubclass[T] = ref object of GenericBase[T]
|
||||
proc foo[T](g: GenericBase[T]) = discard
|
||||
var bar: GenericSubclass[int]
|
||||
foo(bar)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue