mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 20:20:56 +07:00
17 lines
344 B
Java
17 lines
344 B
Java
|
|
import static java.util.Objects.toString;
|
|
|
|
class Foo {
|
|
|
|
String go() {
|
|
return toString<error descr="'toString()' in 'Foo' cannot be applied to '(java.lang.String)'">("foo")</error>;
|
|
}
|
|
|
|
public String toString() {
|
|
return super.toString();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
System.out.println(new Foo().go());
|
|
}
|
|
} |