compiler-design-eth/javali_tests/HW3_nop90/OkDoubleNamesDiffScopes.javali
Carlos Galindo 0afc86ceeb
Homework 3
2020-01-15 22:32:25 +01:00

22 lines
No EOL
338 B
Text

// 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() {
}
}