mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reconstruct function definition for magic variables in overload error message.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
require_overload/input.sol:4:9: Error: No matching declaration found after argument-dependent lookup.
|
||||
require(this);
|
||||
^-----^
|
||||
Candidate: function require(bool)
|
||||
Candidate: function require(bool, string memory)
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,6 @@
|
||||
pragma solidity >=0.0;
|
||||
contract C {
|
||||
function f() public pure {
|
||||
require(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user