Commit 32ef6293 authored by Christian Schwarz's avatar Christian Schwarz

test case with legitimate calls to a function called main

parent 12d91943
class ClassWithNonstaticMain {
/* String is a valid type */
public void main() { }
public void foo() {
main();
}
}
class ClassWithStaticVoidMainStringArgs {
public static void main(String[] args) {
ClassWithNonstaticMain x = new ClassWithNonstaticMain();
x.main();
}
}
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