Re-introduce string type.

This commit is contained in:
chriseth
2015-05-28 16:20:50 +02:00
parent f7e3568c62
commit 6949ce97e4
5 changed files with 36 additions and 13 deletions
+3
View File
@@ -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);
}