mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] k2: additional testdata for extract function
^KTIJ-23514 fixed GitOrigin-RevId: 78f2e633d76a6320bb6d9c3772a3f9d578286a03
This commit is contained in:
committed by
intellij-monorepo-bot
parent
64147c860d
commit
d2091b0f94
+5
@@ -2524,6 +2524,11 @@ public abstract class ExtractionTestGenerated extends AbstractExtractionTest {
|
||||
runTest("testData/refactoring/extractFunction/parameters/nonDenotableTypes/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObject1.kt")
|
||||
public void testAnonymousObject1() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/parameters/nonDenotableTypes/anonymousObject1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObjectWithCall.kt")
|
||||
public void testAnonymousObjectWithCall() throws Exception {
|
||||
runTest("testData/refactoring/extractFunction/parameters/nonDenotableTypes/anonymousObjectWithCall.kt");
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
open class T
|
||||
|
||||
fun foo(): T {
|
||||
<selection>val o = object: T() {}</selection>
|
||||
return o
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
open class T
|
||||
|
||||
fun foo(): T {
|
||||
val o = anonymous()
|
||||
return o
|
||||
}
|
||||
|
||||
private fun anonymous(): T {
|
||||
val o = object : T() {}
|
||||
return o
|
||||
}
|
||||
|
||||
// IGNORE_K1
|
||||
+5
@@ -1682,6 +1682,11 @@ public abstract class K2IntroduceFunctionTestGenerated extends AbstractK2Introdu
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/parameters/nonDenotableTypes/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObject1.kt")
|
||||
public void testAnonymousObject1() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/parameters/nonDenotableTypes/anonymousObject1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObjectWithCall.kt")
|
||||
public void testAnonymousObjectWithCall() throws Exception {
|
||||
runTest("../../idea/tests/testData/refactoring/extractFunction/parameters/nonDenotableTypes/anonymousObjectWithCall.kt");
|
||||
|
||||
Reference in New Issue
Block a user