Extract Function: Generate function in property's enclosing declaration if original expression belongs to initializer of that property
#KT-6290 Fixed
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// PARAM_DESCRIPTOR: value-parameter val a: kotlin.Int defined in bar
|
||||
// PARAM_DESCRIPTOR: value-parameter val b: kotlin.Int defined in bar
|
||||
fun bar(a: Int, b: Int) {
|
||||
val foo = <selection>a + b</selection> - 1
|
||||
}
|
||||
Reference in New Issue
Block a user