aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/332_rational_as_exponent_value_neg_quarter.sol
blob: bc127bf51fce5a95b452ffc9d602f99bdeb77602 (plain) (blame)
1
2
3
4
5
6
7
contract test {
    function f() public {
        42 ** (-1/4);
    }
}
// ----
// TypeError: (50-62): Operator ** not compatible with types int_const 42 and rational_const -1 / 4