mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
10 lines
283 B
Java
10 lines
283 B
Java
class Test {
|
|
<S extends Runnable> S f() {
|
|
return null;
|
|
}
|
|
|
|
{
|
|
String m <warning descr="Though assignment is formal correct, it could lead to ClassCastException at runtime. Expected: 'String', actual: 'Runnable & String'">=</warning> f();
|
|
System.out.println(m);
|
|
}
|
|
} |