[kotlin] add regression quickfix test for KTIJ-23069

^KTIJ-23069 fixed

GitOrigin-RevId: 38ac30e8d7479b1d393c321917999fb95afd2da0
This commit is contained in:
Ilya Kirillov
2024-10-11 11:49:39 +00:00
committed by intellij-monorepo-bot
parent 49f6b018ee
commit b6571c29f9
4 changed files with 26 additions and 0 deletions
@@ -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");
@@ -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");
@@ -0,0 +1,8 @@
// ISSUE: KTIJ-23069
// "Add type 'Int' to parameter 'one'" "true"
data class dataClass(val on<caret>e = 1)
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddTypeAnnotationToValueParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.AddTypeAnnotationToValueParameterFixFactory$AddTypeAnnotationToValueParameterFix
@@ -0,0 +1,8 @@
// ISSUE: KTIJ-23069
// "Add type 'Int' to parameter 'one'" "true"
data class dataClass(val on<caret>e: Int = 1)
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddTypeAnnotationToValueParameterFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.AddTypeAnnotationToValueParameterFixFactory$AddTypeAnnotationToValueParameterFix