diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-08-15 22:58:41 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-09-07 00:28:16 +0800 |
commit | 13c8bb1c8920b6ea507688e24adb68e3bf0aed9f (patch) | |
tree | a3ea50b64012387bf81161c60cf05d852e2befca /libsolidity | |
parent | bc6366fd5231b1542e50acb9519535903134a44a (diff) | |
download | dexon-solidity-13c8bb1c8920b6ea507688e24adb68e3bf0aed9f.tar dexon-solidity-13c8bb1c8920b6ea507688e24adb68e3bf0aed9f.tar.gz dexon-solidity-13c8bb1c8920b6ea507688e24adb68e3bf0aed9f.tar.bz2 dexon-solidity-13c8bb1c8920b6ea507688e24adb68e3bf0aed9f.tar.lz dexon-solidity-13c8bb1c8920b6ea507688e24adb68e3bf0aed9f.tar.xz dexon-solidity-13c8bb1c8920b6ea507688e24adb68e3bf0aed9f.tar.zst dexon-solidity-13c8bb1c8920b6ea507688e24adb68e3bf0aed9f.zip |
Review suggestions
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index f786a83d..2062458e 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -872,12 +872,12 @@ bool TypeChecker::visit(EventDefinition const& _eventDef) { numIndexed++; if ( - _eventDef.sourceUnit().annotation().experimentalFeatures.count(ExperimentalFeature::ABIEncoderV2) - && dynamic_cast<ReferenceType const*>(type(*var).get()) + _eventDef.sourceUnit().annotation().experimentalFeatures.count(ExperimentalFeature::ABIEncoderV2) && + dynamic_cast<ReferenceType const*>(type(*var).get()) ) m_errorReporter.typeError( var->location(), - "Reference types cannot be indexed." + "Indexed reference types cannot yet be used with ABIEncoderV2." ); } if (!type(*var)->canLiveOutsideStorage()) |