mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Omit non-convertible bound functions
This commit is contained in:
parent
003359a0b6
commit
fdd1108c1c
@ -241,7 +241,8 @@ MemberList::MemberMap Type::boundFunctions(Type const& _type, ContractDefinition
|
||||
seenFunctions.insert(function);
|
||||
FunctionType funType(*function, false);
|
||||
if (auto fun = funType.asMemberFunction(true, true))
|
||||
members.push_back(MemberList::Member(function->name(), fun, function));
|
||||
if (_type.isImplicitlyConvertibleTo(*fun->selfType()))
|
||||
members.push_back(MemberList::Member(function->name(), fun, function));
|
||||
}
|
||||
}
|
||||
return members;
|
||||
|
Loading…
Reference in New Issue
Block a user