testdata for IDEA-123731

This commit is contained in:
Anna Kozlova
2014-04-09 17:46:43 +02:00
parent 6d7cfc99c2
commit 07600e5109
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import java.util.Collection;
import java.util.Map;
class Test{
public static void main(String[] args) {
Map<String, Collection<Integer>> myMap = null;
myMap.entrySet().stream()
.flatMap(entry -> entry.getValue().stream()
.map(val -> new Object() {
String key = entry.getKey();
Integer value = val;
}))
.forEachOrdered(o -> {
final String key = o.key;
final Integer value = o.value;
System.out.println("key: " + key + " value: " + value);
});
}
}

View File

@@ -186,6 +186,10 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest();
}
public void testIDEA123731() throws Exception {
doTest();
}
private void doTest() {
doTest(false);
}