aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/111_overflow_caused_by_ether_units.sol
blob: dc4cab8af17052752627b32d6b4cb6f947fd27a9 (plain) (tree)
1
2
3
4
5
6
7
8
            
                          




                                                                               
                                                                                                                                
contract c {
    constructor() public {
        a = 115792089237316195423570985008687907853269984665640564039458 ether;
    }
    uint256 a;
}
// ----
// TypeError: (52-118): Type int_const 1157...(70 digits omitted)...0000 is not implicitly convertible to expected type uint256.