solidity/test/libsolidity/syntaxTests/viewPureChecker/selector.sol
2021-04-20 17:38:29 +02:00

14 lines
301 B
Solidity

contract C {
uint public x;
function f() payable public {
}
function g() pure public returns (bytes4) {
return this.f.selector ^ this.x.selector;
}
function h() view public returns (bytes4) {
x;
return this.f.selector ^ this.x.selector;
}
}
// ----