mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[kotlin] testdata for introduce parameter
^KTIJ-9078 fixed GitOrigin-RevId: 55acf9624b264f75ef3f2aa2bd57a4cd1c95a603
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a3bda1cfb5
commit
3daa0748ab
@@ -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");
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fun String.bar() = 0
|
||||
class Foo {
|
||||
fun bar(): String {
|
||||
return <selection>"bar"</selection>
|
||||
}
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
@@ -0,0 +1,8 @@
|
||||
fun String.bar() = 0
|
||||
class Foo {
|
||||
fun bar(string: String = "bar"): String {
|
||||
return string
|
||||
}
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user