diff --git a/java/java-tests/testData/codeInsight/completion/normal/NoModifierListOverwrite.java b/java/java-tests/testData/codeInsight/completion/normal/NoModifierListOverwrite.java new file mode 100644 index 000000000000..8501e34b8098 --- /dev/null +++ b/java/java-tests/testData/codeInsight/completion/normal/NoModifierListOverwrite.java @@ -0,0 +1,11 @@ +class TestMe { + public interface Exo {} + + TestMe. + + /* Hello World */ + @Override + public String toString() { + return "xyz"; + } +} diff --git a/java/java-tests/testData/codeInsight/completion/normal/NoModifierListOverwrite_after.java b/java/java-tests/testData/codeInsight/completion/normal/NoModifierListOverwrite_after.java new file mode 100644 index 000000000000..7bf3c4de08c8 --- /dev/null +++ b/java/java-tests/testData/codeInsight/completion/normal/NoModifierListOverwrite_after.java @@ -0,0 +1,11 @@ +class TestMe { + public interface Exo {} + + TestMe.Exo + + /* Hello World */ + @Override + public String toString() { + return "xyz"; + } +} diff --git a/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/NormalCompletionTest.groovy b/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/NormalCompletionTest.groovy index 1dcc6925547a..acb27fe735c7 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/NormalCompletionTest.groovy +++ b/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/NormalCompletionTest.groovy @@ -1256,6 +1256,8 @@ public class ListUtils { void testInstanceMagicMethod() throws Exception { doTest() } void testNoDotOverwrite() throws Exception { doTest('.') } + + void testNoModifierListOverwrite() { doTest('\t') } void testStaticInnerExtendingOuter() throws Exception { doTest() }