13 lines
235 B
Plaintext
13 lines
235 B
Plaintext
// Expect 2 errors (one per function)
|
|
|
|
float x;
|
|
float y;
|
|
|
|
void rem() { x = x % y; }
|
|
void rem_eq() { x %= y; }
|
|
|
|
/*%%*
|
|
type mismatch: '%' cannot operate on 'float', 'float'
|
|
type mismatch: '%=' cannot operate on 'float', 'float'
|
|
*%%*/
|