Review suggestions

This commit is contained in:
Leonardo Alt
2018-09-06 18:28:16 +02:00
committed by chriseth
parent bc6366fd52
commit 13c8bb1c89
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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())