Review suggestions

This commit is contained in:
Leonardo Alt authored and chriseth committed 2018-09-06 18:28:16 +02:00
1 parent bc6366fd52
commit 13c8bb1c89
4 files changed
+6 -6

No files matched your search

+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())