Extract Function: Skip callable reference selectors

#KT-13218 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-08 18:57:53 +03:00
parent 6e3d1d726e
commit b793252a5f
5 changed files with 36 additions and 0 deletions
@@ -0,0 +1,13 @@
// WITH_RUNTIME
// PARAM_DESCRIPTOR: value-parameter arg: kotlin.String defined in Foo.Companion.bar
// PARAM_TYPES: kotlin.String
class Foo {
var arguments: Map<String, String>? = null
companion object {
fun bar(arg: String) = Foo().apply {
arguments = <selection>mapOf(Foo::arguments.name to arg)</selection>
}
}
}