diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/refactoring/introduce/ExtractionTestGenerated.java b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/refactoring/introduce/ExtractionTestGenerated.java
index 84c7ac3b7374..7fe8b9032802 100644
--- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/refactoring/introduce/ExtractionTestGenerated.java
+++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/refactoring/introduce/ExtractionTestGenerated.java
@@ -503,6 +503,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
runTest("testData/refactoring/introduceVariable/introduceToFile.kt");
}
+ @TestMetadata("invalidInplaceName.kt")
+ public void testInvalidInplaceName() throws Exception {
+ runTest("testData/refactoring/introduceVariable/invalidInplaceName.kt");
+ }
+
@TestMetadata("It.kt")
public void testIt() throws Exception {
runTest("testData/refactoring/introduceVariable/It.kt");
diff --git a/plugins/kotlin/idea/tests/testData/refactoring/introduceVariable/invalidInplaceName.kt b/plugins/kotlin/idea/tests/testData/refactoring/introduceVariable/invalidInplaceName.kt
new file mode 100644
index 000000000000..a6b1f610d520
--- /dev/null
+++ b/plugins/kotlin/idea/tests/testData/refactoring/introduceVariable/invalidInplaceName.kt
@@ -0,0 +1,5 @@
+// INPLACE_VARIABLE_NAME: val
+/* this test is required to check KTIJ-28946, but the current expected result is not correct, see KTIJ-29410 */
+fun test(): Int {
+ return 1
+}
\ No newline at end of file
diff --git a/plugins/kotlin/idea/tests/testData/refactoring/introduceVariable/invalidInplaceName.kt.after b/plugins/kotlin/idea/tests/testData/refactoring/introduceVariable/invalidInplaceName.kt.after
new file mode 100644
index 000000000000..a4e623304c2b
--- /dev/null
+++ b/plugins/kotlin/idea/tests/testData/refactoring/introduceVariable/invalidInplaceName.kt.after
@@ -0,0 +1,6 @@
+// INPLACE_VARIABLE_NAME: val
+/* this test is required to check KTIJ-28946, but the current expected result is not correct, see KTIJ-29410 */
+fun test(): Int {
+ val val = 1
+ return val
+}
\ No newline at end of file
diff --git a/plugins/kotlin/plugin/common/resources/META-INF/refactorings.xml b/plugins/kotlin/plugin/common/resources/META-INF/refactorings.xml
index 526bf10f599b..3d8d51436628 100644
--- a/plugins/kotlin/plugin/common/resources/META-INF/refactorings.xml
+++ b/plugins/kotlin/plugin/common/resources/META-INF/refactorings.xml
@@ -16,6 +16,7 @@
+
diff --git a/plugins/kotlin/plugin/k1/resources/META-INF/refactorings-fe10.xml b/plugins/kotlin/plugin/k1/resources/META-INF/refactorings-fe10.xml
index 8f9f6fc2e6df..4ef2ed97f555 100644
--- a/plugins/kotlin/plugin/k1/resources/META-INF/refactorings-fe10.xml
+++ b/plugins/kotlin/plugin/k1/resources/META-INF/refactorings-fe10.xml
@@ -16,8 +16,6 @@
-
-