|
@@ -374,7 +374,9 @@ public class TypeMemberGroup {
|
374
|
374
|
|
375
|
375
|
if (selected == null) {
|
376
|
376
|
selected = method;
|
377
|
|
- } else if(selected.priority == method.priority){
|
|
377
|
+ } else if (selected.member.equals(method.member)) {
|
|
378
|
+ selected = selected.resolve(method);
|
|
379
|
+ } else if(selected.priority == method.priority){
|
378
|
380
|
StringBuilder explanation = new StringBuilder();
|
379
|
381
|
FunctionHeader selectedHeader = selected.member.getHeader().instanceForCall(position, scope.getTypeRegistry(), arguments);
|
380
|
382
|
explanation.append("Function A: ").append(selectedHeader.toString()).append("\n");
|