Converted warnings for .gas and .value into an error

This commit is contained in:
hrkrshnn 2020-04-03 17:13:33 +05:30
parent 0eec87bb97
commit 051eec5c51

View File

@ -2526,7 +2526,7 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
!annotation.referencedDeclaration &&
(memberName == "value" || memberName == "gas")
)
m_errorReporter.warning(
m_errorReporter.typeError(
_memberAccess.location(),
"Using \"." + memberName + "(...)\" is deprecated. Use \"{" + memberName + ": ...}\" instead."
);