mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
NPE
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
class Test {
|
||||
|
||||
interface A {
|
||||
A f();
|
||||
}
|
||||
interface B {}
|
||||
|
||||
static abstract class C implements A, B {}
|
||||
static abstract class D implements A, B {}
|
||||
|
||||
interface I<T> {
|
||||
<error descr="Invalid method declaration; return type required">m</error>(T arg);
|
||||
}
|
||||
|
||||
void bar(C c) {
|
||||
foo(c, x -> x.f());
|
||||
foo(c, x -> x);
|
||||
}
|
||||
|
||||
<T> void foo(T t1, I<T> t3) {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user