IDEA-178377 No "final" completion suggestion in catch declaration

This commit is contained in:
peter
2017-09-16 19:11:43 +02:00
parent bca7598f88
commit 84f49683cb
4 changed files with 25 additions and 7 deletions
@@ -0,0 +1,9 @@
public class X {
{
try {
} catch (<caret> AssertionError error) {
}
}
}
@@ -0,0 +1,5 @@
public class Util {
void foo() {
try (<caret> Type var = val)
}
}
@@ -139,7 +139,9 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
public void testNoCaseInsideWhileInSwitch() { doTest(0, "case", "default"); }
public void testFinalInCatch() { doTest(1, "final"); }
public void testFinalInIncompleteCatch() { doTest(1, "final"); }
public void testFinalInCompleteCatch() { doTest(1, "final"); }
public void testFinalInTryWithResources() { doTest(1, "final", "float", "class"); }
public void testFinalInCompleteTryWithResources() { doTest(1, "final", "float", "class"); }
public void testFinalInLambda() { doTest(2, "final", "float"); }
public void testNoFinalAfterTryBody() { doTest(1, "final", "finally"); }
public void testClassInMethod() { doTest(2, "class", "char"); }