compiler-design-eth/javali_tests/HW3_nop90/Assignments/Errors/AssignToMethodCall.javali

11 lines
215 B
Text
Raw Normal View History

2020-01-15 22:32:25 +01:00
// The left-hand side of an assignment cannot be a method call
// Valid options are variable accesses, fields or an indexed array
class Main {
void main() {
action() = read();
}
int action() {
return 0;
}
}