mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10605 from ethereum/develop
Merge develop into breaking.
This commit is contained in:
@@ -1895,9 +1895,13 @@ std::unique_ptr<ReferenceType> ArrayType::copyForLocation(DataLocation _location
|
||||
|
||||
BoolResult ArraySliceType::isImplicitlyConvertibleTo(Type const& _other) const
|
||||
{
|
||||
if (m_arrayType.location() == DataLocation::CallData && m_arrayType.isDynamicallySized() && m_arrayType == _other)
|
||||
return true;
|
||||
return (*this) == _other;
|
||||
return
|
||||
(*this) == _other ||
|
||||
(
|
||||
m_arrayType.dataStoredIn(DataLocation::CallData) &&
|
||||
m_arrayType.isDynamicallySized() &&
|
||||
m_arrayType.isImplicitlyConvertibleTo(_other)
|
||||
);
|
||||
}
|
||||
|
||||
string ArraySliceType::richIdentifier() const
|
||||
|
||||
Reference in New Issue
Block a user