Not operator
This commit is contained in:
@@ -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>()
|
||||
+4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user