[Kotlin] Deleted quick-fix tests for fully qualifying calls with ambiguous resolution.

This is no longer needed when using JPS 2.0 because the K2 compiler has changed the resolution to the new way.

KTIJ-30704

(cherry picked from commit 98f33cb4238b9c2ad50e5ca40bf1ef9cfd7ca1b2)

GitOrigin-RevId: 9c29f53dfd939a542cc22a38e0b11f424c8a44c0
This commit is contained in:
Frederik Haselmeier
2024-09-30 12:16:32 +00:00
committed by intellij-monorepo-bot
parent b8a516268a
commit e3a98f4209
8 changed files with 1 additions and 129 deletions
@@ -19504,35 +19504,6 @@ public abstract class K1QuickFixTestGenerated extends AbstractK1QuickFixTest {
}
}
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("testData/quickfix/useFullyqualifiedCall")
public static class UseFullyqualifiedCall extends AbstractK1QuickFixTest {
@java.lang.Override
@org.jetbrains.annotations.NotNull
public final KotlinPluginMode getPluginMode() {
return KotlinPluginMode.K1;
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
}
@TestMetadata("FunctionCallInsideObject.kt")
public void testFunctionCallInsideObject() throws Exception {
runTest("testData/quickfix/useFullyqualifiedCall/FunctionCallInsideObject.kt");
}
@TestMetadata("NestedObject.kt")
public void testNestedObject() throws Exception {
runTest("testData/quickfix/useFullyqualifiedCall/NestedObject.kt");
}
@TestMetadata("NestedObjectInRoot.kt")
public void testNestedObjectInRoot() throws Exception {
runTest("testData/quickfix/useFullyqualifiedCall/NestedObjectInRoot.kt");
}
}
@RunWith(JUnit3RunnerWithInners.class)
@TestMetadata("testData/quickfix/variables")
public abstract static class Variables extends AbstractK1QuickFixTest {
@@ -3,6 +3,7 @@
// ACTION: Extract 'Test' from current file
// ACTION: Make internal
// ACTION: Make private
// ERROR: '@get:' annotations could be applied only to property declarations
// ERROR: This annotation is not applicable to target 'class' and use site target '@get'
annotation class Ann
@@ -1,16 +0,0 @@
// "Use fully qualified call" "true"
package one.two.three
object Test1 {
fun foo(x: Any) {}
fun foo(f: () -> Unit) {}
object Scope {
fun foo(r: Runnable) {}
fun test(f: () -> Unit) {
<caret>foo(f)
}
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.UseFullyQualifiedCallFix
@@ -1,16 +0,0 @@
// "Use fully qualified call" "true"
package one.two.three
object Test1 {
fun foo(x: Any) {}
fun foo(f: () -> Unit) {}
object Scope {
fun foo(r: Runnable) {}
fun test(f: () -> Unit) {
Scope.foo(f)
}
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.UseFullyQualifiedCallFix
@@ -1,18 +0,0 @@
// "Use fully qualified call" "true"
package one.two.three
object Test1 {
fun <T> foo(f: () -> T): T = f()
fun bar(): Int = 0
object Scope {
fun bar(x: Int = 0): String = ""
fun test() {
val result = foo(::<caret>bar)
}
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.UseFullyQualifiedCallFix
@@ -1,18 +0,0 @@
// "Use fully qualified call" "true"
package one.two.three
object Test1 {
fun <T> foo(f: () -> T): T = f()
fun bar(): Int = 0
object Scope {
fun bar(x: Int = 0): String = ""
fun test() {
val result = foo(Scope::<caret>bar)
}
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.UseFullyQualifiedCallFix
@@ -1,16 +0,0 @@
// "Use fully qualified call" "true"
object Test1 {
fun <T> foo(f: () -> T): T = f()
fun bar(): Int = 0
object Scope {
fun bar(x: Int = 0): String = ""
fun test() {
val result = foo(::<caret>bar)
}
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.UseFullyQualifiedCallFix
@@ -1,16 +0,0 @@
// "Use fully qualified call" "true"
object Test1 {
fun <T> foo(f: () -> T): T = f()
fun bar(): Int = 0
object Scope {
fun bar(x: Int = 0): String = ""
fun test() {
val result = foo(Scope::<caret>bar)
}
}
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.UseFullyQualifiedCallFix