mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
captured wildcard: access object should be placed to the same package (IDEA-151766)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import java.util.Map;
|
||||
|
||||
class Test {
|
||||
void f() {}
|
||||
void m(Map<String, ? extends Test> map, String name) {
|
||||
map.get(name).f();
|
||||
}
|
||||
}
|
||||
+4
@@ -966,4 +966,8 @@ public class GenericsHighlighting8Test extends LightDaemonAnalyzerTestCase {
|
||||
public void testCapturedWildcardWithPrimitiveTypesChecks() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testCapturedWildcardPackageLocalAccess() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user