mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Re-introduce string type.
This commit is contained in:
@@ -824,7 +824,10 @@ bool ExpressionCompiler::visit(IndexAccess const& _indexAccess)
|
||||
if (arrayType.getLocation() == ArrayType::Location::Storage)
|
||||
{
|
||||
if (arrayType.isByteArray())
|
||||
{
|
||||
solAssert(!arrayType.isString(), "Index access to string is not allowed.");
|
||||
setLValue<StorageByteArrayElement>(_indexAccess);
|
||||
}
|
||||
else
|
||||
setLValueToStorageItem(_indexAccess);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user