Merge pull request #7709 from ethereum/overloadMsgForMagic

Reconstruct function definition for magic variables in overload error message.
This commit is contained in:
chriseth
2019-11-14 11:24:54 +01:00
committed by GitHub
4 changed files with 24 additions and 1 deletions
+5
View File
@@ -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)
+1
View File
@@ -0,0 +1 @@
1
@@ -0,0 +1,6 @@
pragma solidity >=0.0;
contract C {
function f() public pure {
require(this);
}
}