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

6 lines
148 B
Solidity
Raw Normal View History

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