%implicitconv is improved for overloaded functions.
Like in C++, the methods with the actual types are considered before trying implicit conversions.
This commit is contained in:
parent
1cc735df5e
commit
b58dabced9
4 changed files with 117 additions and 5 deletions
|
|
@ -114,3 +114,12 @@ try:
|
|||
raise RuntimeError
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
|
||||
### overloading priority test ###
|
||||
|
||||
ccc = CCC(B())
|
||||
check(ccc.checkvalue, 10)
|
||||
check(ccc.xx(123), 11)
|
||||
check(ccc.yy(123, 123), 111)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue