mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make sure "value" error hint is only displayed in the right context
Before, the hint would be shown for any "value" member, even a user-specified one.
This commit is contained in:
@@ -471,7 +471,7 @@ BOOST_AUTO_TEST_CASE(address_staticcall_value)
|
||||
}
|
||||
}
|
||||
)";
|
||||
CHECK_ERROR(sourceCode, TypeError, "Member \"value\" not found or not visible after argument-dependent lookup");
|
||||
CHECK_ERROR(sourceCode, TypeError, "Member \"value\" is only available for payable functions.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user