File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11// @warnings{no-unused}
22module test;
33
4- static_assert( 10 % 20, 10);
5- static_assert(-10 % 20, -10);
6- static_assert( 10 % -20, 10);
7- static_assert(-10 % -20, -10);
8- static_assert(10.0 % 2, 0); // @error{invalid operand for binary operation remainder}
9-
10- static_assert(10 % 2.0, 0); // @error{invalid operand for binary operation remainder}
11-
124fn void test1() {
13- const f32 a = 10 % 2.0;
5+ f32 a = 10 % 2.0; // @error{invalid operand for binary operation remainder}
146}
157
168fn void test2() {
17- const f32 a = 10.0 % 5;
9+ f32 a = 10.0 % 5; // @error{invalid operand for binary operation remainder}
1810}
19-
Original file line number Diff line number Diff line change 1+ // @warnings{no-unused}
2+ module test;
3+
4+ static_assert( 10 % 20, 10);
5+ static_assert(-10 % 20, -10);
6+ static_assert( 10 % -20, 10);
7+ static_assert(-10 % -20, -10);
8+ static_assert(10.0 % 2, 0); // @error{invalid operand for binary operation remainder}
9+ static_assert(10 % 2.0, 0); // @error{invalid operand for binary operation remainder}
You can’t perform that action at this time.
0 commit comments