diff --git a/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java b/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java index 2ddb6d7dff29..cc74479897f2 100644 --- a/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java +++ b/plugins/kotlin/code-insight/fixes-k2/tests/test/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/HighLevelQuickFixTestGenerated.java @@ -3999,6 +3999,11 @@ public abstract class HighLevelQuickFixTestGenerated extends AbstractHighLevelQu runTest("../../../idea/tests/testData/quickfix/typeAddition/changeAccessorTypeToFunctionType.kt"); } + @TestMetadata("dataClasNoParameterType.kt") + public void testDataClasNoParameterType() throws Exception { + runTest("../../../idea/tests/testData/quickfix/typeAddition/dataClasNoParameterType.kt"); + } + @TestMetadata("noAddErrorType.kt") public void testNoAddErrorType() throws Exception { runTest("../../../idea/tests/testData/quickfix/typeAddition/noAddErrorType.kt"); diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/K1QuickFixTestGenerated.java b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/K1QuickFixTestGenerated.java index d61b20d234a1..faa3a8da8b66 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/K1QuickFixTestGenerated.java +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/K1QuickFixTestGenerated.java @@ -17543,6 +17543,11 @@ public abstract class K1QuickFixTestGenerated extends AbstractK1QuickFixTest { runTest("testData/quickfix/typeAddition/changeAccessorTypeToFunctionType.kt"); } + @TestMetadata("dataClasNoParameterType.kt") + public void testDataClasNoParameterType() throws Exception { + runTest("testData/quickfix/typeAddition/dataClasNoParameterType.kt"); + } + @TestMetadata("noAddErrorType.kt") public void testNoAddErrorType() throws Exception { runTest("testData/quickfix/typeAddition/noAddErrorType.kt"); diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/dataClasNoParameterType.kt b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/dataClasNoParameterType.kt new file mode 100644 index 000000000000..1d2b7b7b8430 --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/dataClasNoParameterType.kt @@ -0,0 +1,8 @@ +// ISSUE: KTIJ-23069 +// "Add type 'Int' to parameter 'one'" "true" + +data class dataClass(val one = 1) + + +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddTypeAnnotationToValueParameterFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.AddTypeAnnotationToValueParameterFixFactory$AddTypeAnnotationToValueParameterFix \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/dataClasNoParameterType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/dataClasNoParameterType.kt.after new file mode 100644 index 000000000000..b9513c008b1a --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeAddition/dataClasNoParameterType.kt.after @@ -0,0 +1,8 @@ +// ISSUE: KTIJ-23069 +// "Add type 'Int' to parameter 'one'" "true" + +data class dataClass(val one: Int = 1) + + +// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddTypeAnnotationToValueParameterFix +// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.AddTypeAnnotationToValueParameterFixFactory$AddTypeAnnotationToValueParameterFix \ No newline at end of file