mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
14 lines
308 B
Java
14 lines
308 B
Java
import java.io.IOException;
|
|
|
|
class MethodReferenceErrorHighlight {
|
|
{
|
|
match(String.class, this::foo);
|
|
}
|
|
|
|
<P> void match(final Class<P> type, UnitApply<P> apply) {}
|
|
void foo(String s) throws IOException { throw new IOException(); }
|
|
}
|
|
|
|
interface UnitApply<I> {
|
|
void apply(I i) throws Exception;
|
|
} |