solidity/test/libsolidity/syntaxTests/literalOperations/division_by_zero.sol
2022-08-05 09:52:48 +02:00

6 lines
146 B
Solidity

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