mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
stop at lambda also if it is explicitly typed
EA-78231 - SOE: InferenceSessionContainer.infer
This commit is contained in:
+20
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user