Merge pull request #2978 from ethereum/infer-location

Report correct location for inferred types in packed encoding
This commit is contained in:
chriseth
2017-09-27 12:13:01 +02:00
committed by GitHub
+1 -1
View File
@@ -1497,7 +1497,7 @@ bool TypeChecker::visit(FunctionCall const& _functionCall)
/* If no mobile type is available an error will be raised elsewhere. */
if (literal->mobileType())
m_errorReporter.warning(
_functionCall.location(),
arguments[i]->location(),
"The type of \"" +
argType->toString() +
"\" was inferred as " +