mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
10 lines
248 B
Java
10 lines
248 B
Java
class Test {
|
|
<S extends Runnable> S f() {
|
|
return null;
|
|
}
|
|
|
|
{
|
|
String m = <warning descr="Intersection type 'Runnable & String' cannot be instantiated, because 'java.lang.String' is final">f</warning>();
|
|
System.out.println(m);
|
|
}
|
|
} |