class Main { { // } class Inner1 { static void test(){} } static class Inner2 { static void test(){} } }
Standard input is empty
Main.java:10: error: Illegal static declaration in inner class Main.Inner1 static void test(){} ^ modifier 'static' is only allowed in constant variable declarations 1 error
Standard output is empty