blob: 856d01eb9f694d83d067b29a399a5f45f4789076 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
contract c {
uint constant a1 = 0;
uint constant a2 = 1;
uint constant b1 = mulmod(3, 4, 0);
uint constant b2 = mulmod(3, 4, a1);
uint constant b3 = mulmod(3, 4, a2 - 1);
}
// ----
// TypeError: (88-103): Arithmetic modulo zero.
// TypeError: (128-144): Arithmetic modulo zero.
// TypeError: (169-189): Arithmetic modulo zero.
|