detect expected type by parent for nested array initializers (IDEA-139280)

This commit is contained in:
Anna Kozlova
2015-04-16 20:30:31 +02:00
parent fd11949634
commit 09f4d7ea1f
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,15 @@
import java.util.function.IntFunction;
class Test {
public static void main(String[] args) {
Object[][] o = new Object[][] {{
(IntFunction<String>) integer -> Integer.toString(integer)
}};
Object[] o1 = new Object[] {
(IntFunction<String>) integer -> Integer.toString(integer)
};
}
}