solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/111_overflow_caused_by_ether_units.sol

9 lines
278 B
Solidity
Raw Normal View History

contract c {
2020-06-23 12:14:24 +00:00
constructor() {
a = 115792089237316195423570985008687907853269984665640564039458 ether;
}
uint256 a;
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 7407: (45-111): Type int_const 1157...(70 digits omitted)...0000 is not implicitly convertible to expected type uint256.