Added test
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
// "Add 'operator' modifier" "true"
|
||||||
|
open class A {
|
||||||
|
open fun plus(other: A): A = A()
|
||||||
|
}
|
||||||
|
|
||||||
|
class B : A() {
|
||||||
|
override fun <caret>plus(other: A): A {
|
||||||
|
return super.plus(other)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
// "Add 'operator' modifier" "true"
|
||||||
|
open class A {
|
||||||
|
open fun plus(other: A): A = A()
|
||||||
|
}
|
||||||
|
|
||||||
|
class B : A() {
|
||||||
|
override operator fun <caret>plus(other: A): A {
|
||||||
|
return super.plus(other)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4303,6 +4303,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("forOverride.kt")
|
||||||
|
public void testForOverride() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/migration/operatorModifier/forOverride.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("overridden.kt")
|
@TestMetadata("overridden.kt")
|
||||||
public void testOverridden() throws Exception {
|
public void testOverridden() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/migration/operatorModifier/overridden.kt");
|
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/migration/operatorModifier/overridden.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user