solidity/test/libsolidity/syntaxTests/literalOperations/division_by_zero_complex.sol
2018-04-11 23:20:40 +02:00

6 lines
148 B
Solidity

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