mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix some type checks and tests for internal / external function parameters.
This commit is contained in:
@@ -2075,12 +2075,12 @@ TypePointer FunctionType::encodingType() const
|
||||
return TypePointer();
|
||||
}
|
||||
|
||||
TypePointer FunctionType::interfaceType(bool _inLibrary) const
|
||||
TypePointer FunctionType::interfaceType(bool /*_inLibrary*/) const
|
||||
{
|
||||
if (m_location != Location::External && m_location != Location::Internal)
|
||||
return TypePointer();
|
||||
if (_inLibrary)
|
||||
return shared_from_this();
|
||||
if (m_location != Location::External)
|
||||
return TypePointer();
|
||||
else
|
||||
return make_shared<IntegerType>(8 * storageBytes());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user