one more test for accessing package-private field from annotation

This commit is contained in:
Alexey Kudravtsev
2016-07-11 17:55:07 +03:00
parent 171155a882
commit c8b4c5dbc5
@@ -84,6 +84,15 @@ public class AccessCanBeTightenedInspectionTest extends LightInspectionTestCase
"}");
}
public void testUseOfPackagePrivateInAnnotation() {
doTest("import java.util.*;\n" +
"@interface Ann{ String value(); }\n" +
"@Ann(value = C.VAL\n)" +
"class C {\n" +
" static final String VAL = \"xx\";\n" +
"}");
}
public void testSameFile() {
doTest("class C {\n" +
" private static class Err {\n" +