mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
lambda: primitive array type constructors fixed (IDEA-102836)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
class Example {
|
||||
interface Jjj {
|
||||
int[] jjj(int p);
|
||||
}
|
||||
|
||||
{
|
||||
Jjj jjj = int[]::new;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
class Example {
|
||||
interface Jjj {
|
||||
int[] jjj(int p);
|
||||
}
|
||||
|
||||
{
|
||||
Jjj jjj = (p) -> new i<caret>nt[p];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user