diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-08-15 22:58:41 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-08-15 23:11:18 +0800 |
commit | faed71c6b1235a808a2c87026b345a637238e4a9 (patch) | |
tree | 82c7124c6020f50645bbe45b7b9cb1daf90d1207 /libsolidity | |
parent | c3d3ae80fa59df3a134141ed75f4d195984960fd (diff) | |
download | dexon-solidity-faed71c6b1235a808a2c87026b345a637238e4a9.tar dexon-solidity-faed71c6b1235a808a2c87026b345a637238e4a9.tar.gz dexon-solidity-faed71c6b1235a808a2c87026b345a637238e4a9.tar.bz2 dexon-solidity-faed71c6b1235a808a2c87026b345a637238e4a9.tar.lz dexon-solidity-faed71c6b1235a808a2c87026b345a637238e4a9.tar.xz dexon-solidity-faed71c6b1235a808a2c87026b345a637238e4a9.tar.zst dexon-solidity-faed71c6b1235a808a2c87026b345a637238e4a9.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 b1ab6f97..c737fe41 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -898,12 +898,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()) |