Commit 078454cd authored by Xavier Thompson's avatar Xavier Thompson

Undo the call disambiguation introduced in 'Use MRO to resolve ambiguous cypclass method calls ..'

parent 572ec10d
......@@ -4900,15 +4900,13 @@ def best_match(arg_types, functions, pos=None, env=None, args=None):
bad_types.append((func, error_mesg))
break
else:
from .Symtab import Entry
mro_score = func.mro_index if isinstance(func, Entry) else 0
possibilities.append((mro_score, score, index, func)) # so we can sort it
possibilities.append((score, index, func)) # so we can sort it
if possibilities:
possibilities.sort()
if len(possibilities) > 1:
score1 = possibilities[0][:2]
score2 = possibilities[1][:2]
score1 = possibilities[0][0]
score2 = possibilities[1][0]
if score1 == score2:
if pos is not None:
error(pos, "ambiguous overloaded method")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment