Not operator

This commit is contained in:
Valentin Kipyatkov
2015-10-27 19:12:19 +03:00
parent d289ebd874
commit fc924d1c9f
4 changed files with 15 additions and 1 deletions
@@ -45,7 +45,7 @@ open class AddModifierFix(
override fun getFamilyName() = JetBundle.message("add.modifier.family")
public override operator fun invoke(project: Project, editor: Editor?, file: KtFile) {
override fun invoke(project: Project, editor: Editor?, file: KtFile) {
element.addModifier(modifier)
}
@@ -0,0 +1,4 @@
// "Make A open" "true"
class A(val v: Int)
class B : A<caret>()
@@ -0,0 +1,4 @@
// "Make A open" "true"
open class A(val v: Int)
class B : A<caret>()
@@ -4744,6 +4744,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
doTest(fileName);
}
@TestMetadata("withConstructor.kt")
public void testWithConstructor() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/modifiers/addOpenToClassDeclaration/withConstructor.kt");
doTest(fileName);
}
@TestMetadata("idea/testData/quickfix/modifiers/addOpenToClassDeclaration/finalJavaClass")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)