void (String[] args) { <error descr="Incompatible types. Found: 'java.lang.Object', required: 'java.lang.String'">String v1 = new SomeClass().<String>getX();</error> String v2 = new SomeClass().f(); // }