interface Foo<X> { <T extends Foo> T bar(); public static void main(String[] args) { Foo foo = null; String baz = foo.bar(); }}
Standard input is empty
Main.java:6: error: incompatible types: Foo cannot be converted to String String baz = foo.bar(); ^ 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!