mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] Improve test coverage for K2
Unmute tests ignored for K2 as part of ^KTIJ-29047. GitOrigin-RevId: 6d695e3bbedde56e5c9991eb638a326edc5c49d7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
382687e20e
commit
72c40b6ed6
+207
@@ -7954,7 +7954,214 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu
|
||||
|
||||
|
||||
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
@TestMetadata("../../../idea/tests/testData/quickfix/implement")
|
||||
public static class Implement extends AbstractHighLevelQuickFixTest {
|
||||
@java.lang.Override
|
||||
@org.jetbrains.annotations.NotNull
|
||||
public final KotlinPluginMode getPluginMode() {
|
||||
return KotlinPluginMode.K2;
|
||||
}
|
||||
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("abstract.kt")
|
||||
public void testAbstract() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/abstract.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotation.kt")
|
||||
public void testAnnotation() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/annotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass2.kt")
|
||||
public void testDataClass2() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/dataClass2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass3.kt")
|
||||
public void testDataClass3() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/dataClass3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doNotAddExpectForVal.kt")
|
||||
public void testDoNotAddExpectForVal() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/doNotAddExpectForVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doNotAddHeader.kt")
|
||||
public void testDoNotAddHeader() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/doNotAddHeader.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("finalClass.kt")
|
||||
public void testFinalClass() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/finalClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasImplementedInPrimaryConstructor.kt")
|
||||
public void testHasImplementedInPrimaryConstructor() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasImplementedInPrimaryConstructor2.kt")
|
||||
public void testHasImplementedInPrimaryConstructor2() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("hasImplementedInPrimaryConstructor3.kt")
|
||||
public void testHasImplementedInPrimaryConstructor3() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/hasImplementedInPrimaryConstructor3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inCompanion.kt")
|
||||
public void testInCompanion() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/inCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inInternalCompanion.kt")
|
||||
public void testInInternalCompanion() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/inInternalCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inPrivateCompanion.kt")
|
||||
public void testInPrivateCompanion() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/inPrivateCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inProtectedCompanion.kt")
|
||||
public void testInProtectedCompanion() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/inProtectedCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("incorrectRange.kt")
|
||||
public void testIncorrectRange() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/incorrectRange.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inner.kt")
|
||||
public void testInner() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/inner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interface.kt")
|
||||
public void testInterface() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/interface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("local.kt")
|
||||
public void testLocal() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/local.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("menyImplMemberNotImplemented.kt")
|
||||
public void testMenyImplMemberNotImplemented() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/menyImplMemberNotImplemented.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nested.kt")
|
||||
public void testNested() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/nested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedPrivateInterface.kt")
|
||||
public void testNestedPrivateInterface() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/nestedPrivateInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noDefaultConstructor.kt")
|
||||
public void testNoDefaultConstructor() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/noDefaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("private.kt")
|
||||
public void testPrivate() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/private.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateConstructor.kt")
|
||||
public void testPrivateConstructor() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/privateConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateNested.kt")
|
||||
public void testPrivateNested() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/privateNested.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateNestedWithConflict.kt")
|
||||
public void testPrivateNestedWithConflict() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/privateNestedWithConflict.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("protected.kt")
|
||||
public void testProtected() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/protected.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealed.kt")
|
||||
public void testSealed() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/sealed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedAfter15.kt")
|
||||
public void testSealedAfter15() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/sealedAfter15.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedEmpty.kt")
|
||||
public void testSealedEmpty() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/sealedEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedEmptyAfter15.kt")
|
||||
public void testSealedEmptyAfter15() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/sealedEmptyAfter15.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedWithConflict.kt")
|
||||
public void testSealedWithConflict() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/sealedWithConflict.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedWithConflictAfter15.kt")
|
||||
public void testSealedWithConflictAfter15() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/sealedWithConflictAfter15.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameter.kt")
|
||||
public void testTypeParameter() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/typeParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameterOut.kt")
|
||||
public void testTypeParameterOut() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/typeParameterOut.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParameterWhere.kt")
|
||||
public void testTypeParameterWhere() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/typeParameterWhere.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeParametersClass.kt")
|
||||
public void testTypeParametersClass() throws Exception {
|
||||
runTest("../../../idea/tests/testData/quickfix/implement/typeParametersClass.kt");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7,4 +7,5 @@ private abstract class <caret>Base {
|
||||
|
||||
abstract fun toInt(arg: String): Int
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -17,4 +17,5 @@ private class BaseImpl : Base() {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -5,4 +5,5 @@ interface I {
|
||||
}
|
||||
|
||||
data <caret>class C(val i: Int) : I
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -9,4 +9,5 @@ data class C(val i: Int) : I {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -5,4 +5,5 @@ interface I {
|
||||
}
|
||||
|
||||
data <caret>class C(val i: Int) : I {}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -9,4 +9,5 @@ data class C(val i: Int) : I {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -7,4 +7,5 @@ interface I {
|
||||
data <caret>class C(val i: Int) : I {
|
||||
fun bar() {}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -10,4 +10,5 @@ data class C(val i: Int) : I {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -13,4 +13,5 @@ expect interface InterfaceWithVals {
|
||||
class <caret>ChildOfInterface : InterfaceWithVals{
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -19,4 +19,5 @@ class ChildOfInterface : InterfaceWithVals{
|
||||
get() = TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -11,4 +11,5 @@ expect interface InterfaceWithFuns {
|
||||
class <caret>ChildOfInterface : InterfaceWithFuns{
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -14,4 +14,5 @@ class ChildOfInterface : InterfaceWithFuns{
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
+2
-1
@@ -8,4 +8,5 @@ abstract class B {
|
||||
<caret>class MyImpl(
|
||||
override val p: String? = null
|
||||
) : B()
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
+2
-1
@@ -12,4 +12,5 @@ class MyImpl(
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
+2
-1
@@ -9,4 +9,5 @@ abstract class B {
|
||||
override val p: String? = null
|
||||
) : B() {
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
+2
-1
@@ -12,4 +12,5 @@ class MyImpl2(
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
+2
-1
@@ -11,4 +11,5 @@ abstract class C {
|
||||
) : C() {
|
||||
override val q: Int = 0
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
+2
-1
@@ -14,4 +14,5 @@ class MyImpl3(
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.KtImplementMembersQuickfix
|
||||
@@ -7,4 +7,5 @@ class Container {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -9,4 +9,5 @@ class Container {
|
||||
|
||||
class BaseImpl : Container.Companion.Base()
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -7,4 +7,5 @@ class Container {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -9,4 +9,5 @@ class Container {
|
||||
|
||||
internal class BaseImpl : Container.Companion.Base()
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -7,4 +7,5 @@ class Container {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -9,4 +9,5 @@ class Container {
|
||||
private class BaseImpl : Companion.Base()
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -7,4 +7,5 @@ class Container {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -9,4 +9,5 @@ class Container {
|
||||
protected class BaseImpl : Companion.Base()
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -8,4 +8,5 @@ class Container {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -14,4 +14,5 @@ class Container {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -8,4 +8,5 @@ interface <caret>Base {
|
||||
fun bar(y: String) = y
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -14,4 +14,5 @@ class BaseImpl : Base {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
+2
-1
@@ -12,4 +12,5 @@ open class B {
|
||||
}
|
||||
|
||||
class<caret> C : A, B()
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
/* IGNORE_K2 */
|
||||
+2
-1
@@ -28,4 +28,5 @@ class C : A, B() {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.core.overrideImplement.ImplementMembersHandler
|
||||
/* IGNORE_K2 */
|
||||
@@ -16,4 +16,5 @@ class Container {
|
||||
}
|
||||
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -25,4 +25,5 @@ class BaseImpl : Container.Base {
|
||||
}
|
||||
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -7,4 +7,5 @@ class Container {
|
||||
var z: Double
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
+2
-1
@@ -13,4 +13,5 @@ class Container {
|
||||
set(value) {}
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -2,4 +2,5 @@
|
||||
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
||||
|
||||
private open class <caret>Base
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -3,4 +3,5 @@
|
||||
|
||||
private open class Base
|
||||
private class BaseImpl : Base()
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -9,4 +9,5 @@ class Container {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -11,4 +11,5 @@ class Container {
|
||||
private class BaseImpl : Base()
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -11,4 +11,5 @@ class Container {
|
||||
private class BaseImpl : Base()
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
+2
-1
@@ -13,4 +13,5 @@ class Container {
|
||||
private class BaseImpl : Base()
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -4,4 +4,5 @@
|
||||
class Container {
|
||||
protected abstract class <caret>Base
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -5,4 +5,5 @@ class Container {
|
||||
protected abstract class Base
|
||||
protected class BaseImpl : Base()
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -6,4 +6,5 @@ sealed class <caret>Base {
|
||||
abstract fun foo(): Int
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -12,4 +12,5 @@ class BaseImpl : Base() {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -6,4 +6,5 @@
|
||||
sealed class <caret>Base {
|
||||
abstract fun foo(): Int
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -12,4 +12,5 @@ class BaseImpl : Base() {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -3,4 +3,5 @@
|
||||
|
||||
sealed class <caret>Sealed
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -4,4 +4,5 @@
|
||||
sealed class Sealed
|
||||
class SealedImpl : Sealed()
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -2,4 +2,5 @@
|
||||
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces
|
||||
sealed class <caret>Sealed
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -3,4 +3,5 @@
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+SealedInterfaces
|
||||
sealed class Sealed
|
||||
<caret>class SealedImpl : Sealed()
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -10,4 +10,5 @@ sealed class <caret>Base {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -16,4 +16,5 @@ class BaseImpl : Base() {
|
||||
}
|
||||
}
|
||||
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -10,4 +10,5 @@ sealed class <caret>Base {
|
||||
override fun foo() = throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
+2
-1
@@ -16,4 +16,5 @@ class BaseImpl : Base() {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -2,4 +2,5 @@
|
||||
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
||||
|
||||
interface <caret>Base<T : Any>
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -3,4 +3,5 @@
|
||||
|
||||
interface Base<T : Any>
|
||||
class BaseImpl<T : Any> : Base<T>
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -2,4 +2,5 @@
|
||||
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
||||
|
||||
interface <caret>Base<out T>
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -3,4 +3,5 @@
|
||||
|
||||
interface Base<out T>
|
||||
class BaseImpl<out T> : Base<T>
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -2,4 +2,5 @@
|
||||
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
||||
|
||||
interface <caret>Base<T> where T : Any
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -3,4 +3,5 @@
|
||||
|
||||
interface Base<T> where T : Any
|
||||
class BaseImpl<T> : Base<T> where T : Any
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -2,4 +2,5 @@
|
||||
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
||||
|
||||
open class <caret>Base<T : Any, L : List<T>>
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
@@ -3,4 +3,5 @@
|
||||
|
||||
open class Base<T : Any, L : List<T>>
|
||||
class BaseImpl<T : Any, L : List<T>> : Base<T, L>()
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
/* IGNORE_K2 */
|
||||
+1
-1
@@ -120,7 +120,7 @@ internal fun MutableTWorkspace.generateK2FixTests() {
|
||||
model("$idea/quickfix/final", pattern = pattern, isIgnored = true)
|
||||
model("$idea/quickfix/foldTryCatch", pattern = pattern)
|
||||
model("$idea/quickfix/functionWithLambdaExpressionBody", pattern = pattern, isIgnored = true)
|
||||
model("$idea/quickfix/implement", pattern = pattern, isIgnored = true)
|
||||
model("$idea/quickfix/implement", pattern = pattern)
|
||||
model("$idea/quickfix/importAlias", pattern = pattern, isIgnored = true)
|
||||
model("$idea/quickfix/increaseVisibility", pattern = pattern, isIgnored = true)
|
||||
model("$idea/quickfix/initializeWithConstructorParameter", pattern = pattern, isIgnored = true)
|
||||
|
||||
Reference in New Issue
Block a user