Extract Function: Add support of property-as-function calls

#KT-5179 Fixed
This commit is contained in:
Alexey Sedunov
2014-06-19 16:17:48 +04:00
parent 6bc3772d29
commit c7d8ab8219
5 changed files with 35 additions and 10 deletions
@@ -0,0 +1,13 @@
// PARAM_TYPES: A
class A {
fun invoke() = 20
}
// SIBLING:
fun testProp() {
val foo = A()
unit(foo)
}
fun unit(foo: A) {
foo()
}