Extract Function: Fix detection of suspend calls containing extracted parameters
#KT-16251 Fixed
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// PARAM_TYPES: D
|
||||
// PARAM_DESCRIPTOR: value-parameter d: D defined in test1
|
||||
class D {
|
||||
suspend fun await() {}
|
||||
}
|
||||
|
||||
// SIBLING:
|
||||
suspend fun test1(d: D) {
|
||||
<selection>d.await()</selection>
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// PARAM_TYPES: D
|
||||
// PARAM_DESCRIPTOR: value-parameter d: D defined in test1
|
||||
class D {
|
||||
suspend fun await() {}
|
||||
}
|
||||
|
||||
// SIBLING:
|
||||
suspend fun test1(d: D) {
|
||||
__dummyTestFun__(d)
|
||||
}
|
||||
|
||||
private suspend fun __dummyTestFun__(d: D) {
|
||||
d.await()
|
||||
}
|
||||
Reference in New Issue
Block a user