Commit 53b973c3 authored by Christian Schwarz's avatar Christian Schwarz
Browse files

add test case for shadowing of System by class member

parent eb4b5e8f
class SystemShadowing {
public SystemShadowing System;
public SystemShadowing out;
public void println(int x) { }
public void nonstatic() {
public static void main(String[] args) {
SystemShadowing x = new SystemShadowing();
x.nonstatic(); /* expected to throw NullPointerException at runtime due to shadowing */
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