mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Converted warnings for .gas and .value into an error
This commit is contained in:
parent
0eec87bb97
commit
051eec5c51
@ -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."
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user