[kotlin] testdata for introduce parameter

^KTIJ-9078 fixed

GitOrigin-RevId: 55acf9624b264f75ef3f2aa2bd57a4cd1c95a603
This commit is contained in:
Anna Kozlova
2024-05-16 17:19:55 +02:00
committed by intellij-monorepo-bot
parent a3bda1cfb5
commit 3daa0748ab
4 changed files with 26 additions and 0 deletions

View File

@@ -3656,6 +3656,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
runTest("testData/refactoring/introduceParameter/return.kt");
}
@TestMetadata("sameNameFunctionNoConflict.kt")
public void testSameNameFunctionNoConflict() throws Exception {
runTest("testData/refactoring/introduceParameter/sameNameFunctionNoConflict.kt");
}
@TestMetadata("secondaryConstructorWithDefaultValue.kt")
public void testSecondaryConstructorWithDefaultValue() throws Exception {
runTest("testData/refactoring/introduceParameter/secondaryConstructorWithDefaultValue.kt");

View File

@@ -0,0 +1,8 @@
fun String.bar() = 0
class Foo {
fun bar(): String {
return <selection>"bar"</selection>
}
}
// IGNORE_K1

View File

@@ -0,0 +1,8 @@
fun String.bar() = 0
class Foo {
fun bar(string: String = "bar"): String {
return string
}
}
// IGNORE_K1

View File

@@ -400,6 +400,11 @@ public abstract class K2IntroduceParameterTestGenerated extends AbstractK2Introd
runTest("../../idea/tests/testData/refactoring/introduceParameter/return.kt");
}
@TestMetadata("sameNameFunctionNoConflict.kt")
public void testSameNameFunctionNoConflict() throws Exception {
runTest("../../idea/tests/testData/refactoring/introduceParameter/sameNameFunctionNoConflict.kt");
}
@TestMetadata("secondaryConstructorWithDefaultValue.kt")
public void testSecondaryConstructorWithDefaultValue() throws Exception {
runTest("../../idea/tests/testData/refactoring/introduceParameter/secondaryConstructorWithDefaultValue.kt");