Commit 80cf892a authored by Maximilian Stemmer-Grabow's avatar Maximilian Stemmer-Grabow

Add another test case for shadowing behavior of the System identifier

parent e7769dfc
/*
* This should be rejected by a MiniJava compiler like it is by the
* Java compiler as the class "System" shadows the default System
* declaration, but cannot have a static field named "out".
*/
class System {
public static void main(String[] args) {
System.out.println(42);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment