fork download
  1. class B implements Comparable <B>, Comparable <String> {
  2. public int compareTo(B b) { /* ... */ }
  3. public int compareTo(String s) { /* ... */ }
  4. }
Compilation error #stdin compilation error #stdout 0.04s 2184192KB
stdin
Standard input is empty
compilation info
Main.java:1: error: repeated interface
class B implements Comparable <B>, Comparable <String> {
                                              ^
Main.java:1: error: Comparable cannot be inherited with different arguments: <B> and <java.lang.String>
class B implements Comparable <B>, Comparable <String> {
^
2 errors
stdout
Standard output is empty