Extract Function: Show possible types for receiver in Extract Function/Introduce Lambda Parameter dialogs

#KT-7578 Fixed
This commit is contained in:
Alexey Sedunov
2015-05-22 14:15:07 +03:00
parent cb9b1019b2
commit 72205540d6
6 changed files with 78 additions and 14 deletions
@@ -0,0 +1,9 @@
// PARAM_DESCRIPTOR: internal fun Bar.foo(): kotlin.Unit defined in root package
// PARAM_TYPES: Bar, Foo, kotlin.Any
open class Foo
class Bar : Foo()
fun Bar.foo() {
<selection>toString()</selection>
}
@@ -0,0 +1,13 @@
// PARAM_DESCRIPTOR: internal fun Bar.foo(): kotlin.Unit defined in root package
// PARAM_TYPES: Bar, Foo, kotlin.Any
open class Foo
class Bar : Foo()
fun Bar.foo() {
__dummyTestFun__()
}
private fun Bar.__dummyTestFun__() {
toString()
}