mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
32c3233209
commit
fce6b1d969
+2
-1
@@ -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
@@ -1,5 +1,4 @@
|
||||
// "Add '@Throws' annotation" "false"
|
||||
// IGNORE_K2
|
||||
fun test() {
|
||||
<caret>throw Throwable()
|
||||
}
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// "Add '@Throws' annotation" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
fun test() {
|
||||
<caret>throw Throwable()
|
||||
}
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
// "Add '@Throws' annotation" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
@Throws(Throwable::class)
|
||||
fun test() {
|
||||
<caret>throw Throwable()
|
||||
}
|
||||
<selection><caret></selection>throw Throwable()
|
||||
}
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Add '@Throws' annotation" "false"
|
||||
// IGNORE_K2
|
||||
fun test() {
|
||||
<caret>throw Throwable()
|
||||
}
|
||||
-1
@@ -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()
|
||||
|
||||
-1
@@ -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()
|
||||
|
||||
-1
@@ -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
-1
@@ -1,3 +1,3 @@
|
||||
// "Implement as constructor parameters" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
actual class <caret>End : IFoo
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
// "Implement as constructor parameters" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
actual class End(override val a: Int) : IFoo
|
||||
-1
@@ -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
@@ -1,5 +1,4 @@
|
||||
// "Create test" "false"
|
||||
// ACTION: Rename file to Foo.kt
|
||||
// IGNORE_K2
|
||||
|
||||
expect class <caret>Foo
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import class 'Foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import class 'Foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import class 'Foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import class 'Foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import class 'Foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import class 'Foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import function 'foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import function 'foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import class 'Foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import class 'Foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import function 'foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Import function 'foo'" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
package bar
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Move to constructor" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
actual class SimpleWConstructor(i: Int) {
|
||||
actual val <caret>b: String = ""
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Move to constructor" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
actual class SimpleWConstructor(i: Int, actual val b: String = "") {
|
||||
}
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Move to constructor" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
actual class SimpleWConstructor {
|
||||
val <caret>b: String = ""
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// "Move to constructor" "true"
|
||||
// IGNORE_K2
|
||||
|
||||
actual class SimpleWConstructor(val b: String = "") {
|
||||
}
|
||||
Reference in New Issue
Block a user