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,6 +241,7 @@ MemberList::MemberMap Type::boundFunctions(Type const& _type, ContractDefinition
|
|||||||
seenFunctions.insert(function);
|
seenFunctions.insert(function);
|
||||||
FunctionType funType(*function, false);
|
FunctionType funType(*function, false);
|
||||||
if (auto fun = funType.asMemberFunction(true, true))
|
if (auto fun = funType.asMemberFunction(true, true))
|
||||||
|
if (_type.isImplicitlyConvertibleTo(*fun->selfType()))
|
||||||
members.push_back(MemberList::Member(function->name(), fun, function));
|
members.push_back(MemberList::Member(function->name(), fun, function));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user