2018-04-09 13:22:45 +00:00
|
|
|
contract c {
|
|
|
|
uint constant a1 = 0;
|
|
|
|
uint constant a2 = 1;
|
|
|
|
uint constant b1 = 3 % a1;
|
|
|
|
uint constant b2 = 3 % (a2 - 1);
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// TypeError 1211: (88-94): Modulo zero.
|
|
|
|
// TypeError 1211: (119-131): Modulo zero.
|