aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-05-28 22:20:50 +0800
committerchriseth <c@ethdev.com>2015-05-28 22:20:50 +0800
commit6949ce97e43a7198180188209fe4a09ca9744f50 (patch)
treee714ef3967a3e87769a3b846d06f7a5b25fcbb25 /ExpressionCompiler.cpp
parentf7e3568c6202b940394097f147e0c4e6ffe7fe9c (diff)
downloaddexon-solidity-6949ce97e43a7198180188209fe4a09ca9744f50.tar.gz
dexon-solidity-6949ce97e43a7198180188209fe4a09ca9744f50.tar.zst
dexon-solidity-6949ce97e43a7198180188209fe4a09ca9744f50.zip
Re-introduce string type.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 2e513b7f..5a978285 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -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);
}