solidity/test/libsolidity/syntaxTests/viewPureChecker/selector.sol

14 lines
301 B
Solidity
Raw Permalink Normal View History

contract C {
uint public x;
function f() payable public {
}
function g() pure public returns (bytes4) {
return this.f.selector ^ this.x.selector;
}
2018-07-04 09:25:45 +00:00
function h() view public returns (bytes4) {
x;
return this.f.selector ^ this.x.selector;
}
}
// ----