compiler-design-eth/javali_tests/HW3_nop90/OkDoubleNamesDiffScopes.javali

22 lines
338 B
Text
Raw Normal View History

2020-01-15 22:32:25 +01:00
// Names are case-sensitive
// There exists different scopes for fields, methods, class types, parameters and local variables
class main extends Main {
main main;
Main Main;
main main(Main main, main Main) {
Main MAIN;
main maiN;
maiN = new Main();
return maiN;
}
}
class Main {
main main;
Main Main;
void main() {
}
}