mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
Java: better error reporting and quick fixes for the diamond operator and generic array creation (IDEA-299195)
GitOrigin-RevId: baa354ad9132bf6d939f19ecd2cfd6cfc56466a2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7e1c830a1a
commit
ab928055bb
@@ -40,7 +40,7 @@ class OnArrayTest {
|
||||
ArrayReturnType<String[]> a3 = <error descr="Bad return type in method reference: cannot convert int[] to java.lang.String[]">int[]::new</error>;
|
||||
|
||||
ObjectArrayReturnType a4 = Foo<?>[]::new;
|
||||
ObjectArrayReturnType a5 = <error descr="Generic array creation">Foo<? extends String>[]</error>::new;
|
||||
ObjectArrayReturnType a5 = Foo<error descr="Generic array creation not allowed"><? extends String></error>[]::new;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user