class Test { public static void main(String[] args) { class Foo {} Foo foos = new Foo[12]; }}
Standard input is empty
Main.java:4: error: incompatible types Foo foos = new Foo[12]; ^ required: Foo found: Foo[] 1 error
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!