overloading resolution finally takes inheritance depth into account
This commit is contained in:
parent
483f28d1cf
commit
e2f8d91290
3 changed files with 78 additions and 66 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
disabled: true
|
||||
output: "b"
|
||||
"""
|
||||
|
||||
type
|
||||
|
|
@ -12,8 +12,8 @@ type
|
|||
TC = object of TB
|
||||
whatever: string
|
||||
|
||||
proc p(a: var TA) = nil
|
||||
proc p(b: var TB) = nil
|
||||
proc p(a: var TA) = echo "a"
|
||||
proc p(b: var TB) = echo "b"
|
||||
|
||||
var c: TC
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue