diamonds: fix parent hunting inside anonymous class (IDEA-259666)

GitOrigin-RevId: 51f47646dbe68e9182b75e3058b0d1216ada92e6
This commit is contained in:
Anna Kozlova
2021-01-18 10:13:11 +01:00
committed by intellij-monorepo-bot
parent 328c05d165
commit 0a73a79b70
3 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
import java.util.*;
class MyTest {
private static <K, V> HashMap<K, V> createMultiMap(boolean identityKeys) {
return new HashMap<>(identityKeys ? new HashMap<>() : Collections.emptyMap()) {};
}
}