aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker/selector.sol
blob: c4e30075c2d7b7eda8dfffd018136e6f3a95a415 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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;
    }
}