mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Relax identity requirement of function type conversions during code generation.
This commit is contained in:
parent
88aee34c22
commit
a3e37a9d5a
@ -1014,6 +1014,8 @@ void CompilerUtils::convertType(
|
|||||||
// stack: <address> <function_id>
|
// stack: <address> <function_id>
|
||||||
m_context << Instruction::POP;
|
m_context << Instruction::POP;
|
||||||
}
|
}
|
||||||
|
else if (stackTypeCategory == Type::Category::Function && targetTypeCategory == Type::Category::Function)
|
||||||
|
solAssert(_typeOnStack.isImplicitlyConvertibleTo(_targetType), "Invalid function type conversion requested.");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// All other types should not be convertible to non-equal types.
|
// All other types should not be convertible to non-equal types.
|
||||||
|
Loading…
Reference in New Issue
Block a user