Commit 42cd2acf authored by samaingw's avatar samaingw Committed by Stefan Behnel

Scope.lookup_operator: use arg_types defined right above (GH-3011)

parent 224cd54a
...@@ -907,8 +907,7 @@ class Scope(object): ...@@ -907,8 +907,7 @@ class Scope(object):
method = obj_type.scope.lookup("operator%s" % operator) method = obj_type.scope.lookup("operator%s" % operator)
if method is not None: if method is not None:
arg_types = [arg.type for arg in operands[1:]] arg_types = [arg.type for arg in operands[1:]]
res = PyrexTypes.best_match([arg.type for arg in operands[1:]], res = PyrexTypes.best_match(arg_types, method.all_alternatives())
method.all_alternatives())
if res is not None: if res is not None:
return res return res
function = self.lookup("operator%s" % operator) function = self.lookup("operator%s" % operator)
......
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