[kotlin] Remove diagnostic check from multi module fix tests in K2

This check prevents some tests from running. We should implement it for K2 separately

GitOrigin-RevId: 0e18e28d479f353927fd91ec55482170dfacc7cd
This commit is contained in:
Bart van Helvert
2024-03-29 21:00:43 +00:00
committed by intellij-monorepo-bot
parent 32c3233209
commit fce6b1d969
28 changed files with 8 additions and 28 deletions
@@ -126,7 +126,8 @@ abstract class AbstractQuickFixMultiModuleTest : AbstractMultiModuleTest(), Quic
}
if (actionFile is KtFile) {
DirectiveBasedActionUtils.checkForUnexpectedErrors(actionFile)
// TODO check diagnostics for K2
if (!isFirPlugin()) DirectiveBasedActionUtils.checkForUnexpectedErrors(actionFile)
}
if (actionShouldBeAvailable) {
@@ -1,5 +1,4 @@
// "Add '@Throws' annotation" "false"
// IGNORE_K2
fun test() {
<caret>throw Throwable()
}
@@ -1,5 +1,6 @@
// "Add '@Throws' annotation" "true"
// IGNORE_K2
fun test() {
<caret>throw Throwable()
}
@@ -1,6 +1,7 @@
// "Add '@Throws' annotation" "true"
// IGNORE_K2
@Throws(Throwable::class)
fun test() {
<caret>throw Throwable()
}
<selection><caret></selection>throw Throwable()
}
@@ -1,5 +1,4 @@
// "Add '@Throws' annotation" "false"
// IGNORE_K2
fun test() {
<caret>throw Throwable()
}
@@ -2,7 +2,6 @@
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
// ERROR: Unresolved reference: TODO
// ERROR: Unresolved reference: TODO
// IGNORE_K2
sealed class CommonSealedClass()
class SInheritor1 : CommonSealedClass()
@@ -2,7 +2,6 @@
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
// ERROR: Unresolved reference: TODO
// ERROR: Unresolved reference: TODO
// IGNORE_K2
sealed class CommonSealedClass()
class SInheritor1 : CommonSealedClass()
@@ -2,7 +2,6 @@
// ERROR: @Throws on suspend declaration must have CancellationException (or any of its superclasses) listed
// ACTION: Make internal
// ACTION: Make private
// IGNORE_K2
class MyException : Throwable()
@@ -1,3 +1,3 @@
// "Implement as constructor parameters" "true"
// IGNORE_K2
actual class <caret>End : IFoo
@@ -1,3 +1,3 @@
// "Implement as constructor parameters" "true"
// IGNORE_K2
actual class End(override val a: Int) : IFoo
@@ -1,7 +1,6 @@
// "Convert property getter to initializer" "false"
// ERROR: Expected declaration must not have a body
// ACTION: Convert to block body
// IGNORE_K2
expect class C {
val p: Int
@@ -1,5 +1,4 @@
// "Create test" "false"
// ACTION: Rename file to Foo.kt
// IGNORE_K2
expect class <caret>Foo
@@ -1,5 +1,4 @@
// "Import class 'Foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import class 'Foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import class 'Foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import class 'Foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import class 'Foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import class 'Foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import function 'foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import function 'foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import class 'Foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import class 'Foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import function 'foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Import function 'foo'" "true"
// IGNORE_K2
package bar
@@ -1,5 +1,4 @@
// "Move to constructor" "true"
// IGNORE_K2
actual class SimpleWConstructor(i: Int) {
actual val <caret>b: String = ""
@@ -1,5 +1,4 @@
// "Move to constructor" "true"
// IGNORE_K2
actual class SimpleWConstructor(i: Int, actual val b: String = "") {
}
@@ -1,5 +1,4 @@
// "Move to constructor" "true"
// IGNORE_K2
actual class SimpleWConstructor {
val <caret>b: String = ""
@@ -1,5 +1,4 @@
// "Move to constructor" "true"
// IGNORE_K2
actual class SimpleWConstructor(val b: String = "") {
}