Added test

This commit is contained in:
Valentin Kipyatkov
2015-10-17 10:26:39 +03:00
parent 5ce0ed37b1
commit 563ad4bab2
3 changed files with 26 additions and 0 deletions
@@ -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);
}
@TestMetadata("forOverride.kt")
public void testForOverride() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/migration/operatorModifier/forOverride.kt");
doTest(fileName);
}
@TestMetadata("overridden.kt")
public void testOverridden() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/migration/operatorModifier/overridden.kt");