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

6 lines
147 B
Solidity
Raw Normal View History

contract C {
uint constant b3 = 1 % 0;
}
// ----
2022-08-03 08:44:25 +00:00
// TypeError 2271: (36-41): Operator % not compatible with types int_const 1 and int_const 0.