overloading resolution finally takes inheritance depth into account

This commit is contained in:
Araq 2012-07-11 00:10:24 +02:00
commit e2f8d91290
3 changed files with 78 additions and 66 deletions

View file

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