stop at lambda also if it is explicitly typed

EA-78231 - SOE: InferenceSessionContainer.infer
This commit is contained in:
Anna Kozlova
2016-02-03 12:39:27 +03:00
parent dc459a4953
commit e7c7fab136
3 changed files with 26 additions and 0 deletions
@@ -0,0 +1,20 @@
class Test {
{
bar(new ThrowableComputable<String, Exception>() {
@Override
public String compute() throws Exception {
return foo();
}
});
}
private <T> void bar(ThrowableComputable<T, Exception> throwableComputable) {}
private <K> K foo() throws Exception {
return null;
}
interface ThrowableComputable<T, T1 extends Throwable> {
T compute() throws T1;
}
}