solidity/test/libsolidity/syntaxTests/literalOperations/division_by_zero.sol

6 lines
140 B
Solidity
Raw Normal View History

contract C {
uint constant a = 1 / 0;
}
// ----
// TypeError: (35-40): Operator / not compatible with types int_const 1 and int_const 0