blob: aa15ff5315b187a3dad37be539733ddea2f752f7 [file]
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);
}
}