This commit is contained in:
Andreas Rumpf 2016-08-08 18:03:52 +02:00
commit 09f122f68c
2 changed files with 45 additions and 30 deletions

View file

@ -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)