%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:
William S Fulton 2013-08-28 20:24:54 +01:00
commit b58dabced9
4 changed files with 117 additions and 5 deletions

View file

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