aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/113_exp_warn_literal_base_1.sol
blob: 0d91fcab11194aa3545a0daf08b16408b22a5a7d (plain) (blame)
1
2
3
4
5
6
7
8
contract test {
    function f() pure public returns(uint) {
        uint8 x = 100;
        return 10**x;
    }
}
// ----
// Warning: (99-104): Result of exponentiation has type uint8 and thus might overflow. Silence this warning by converting the literal to the expected type.