mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
testdata for IDEA-140586
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import java.io.IOException;
|
||||
|
||||
class Test {
|
||||
@FunctionalInterface
|
||||
public interface ConsumerThatThrows<T, E extends Throwable> {
|
||||
void accept(T var1) throws E;
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws IOException
|
||||
{
|
||||
acceptsConsumerThatThrows(Test::methodThatThrows, "hello");
|
||||
}
|
||||
|
||||
public static <T, E extends Exception> void acceptsConsumerThatThrows(ConsumerThatThrows<T, E> consumer, T t) throws E
|
||||
{
|
||||
consumer.accept(t);
|
||||
}
|
||||
|
||||
public static void methodThatThrows(String s) throws IOException {}
|
||||
}
|
||||
@@ -406,6 +406,10 @@ public class NewMethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA140586() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user