Change Signature: Recreate call expression when converting receiver to parameter

#KT-8878 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-07 13:52:49 +03:00
parent 9e11a20006
commit b4410c625f
5 changed files with 36 additions and 2 deletions
@@ -0,0 +1,9 @@
// CHECK_ERRORS_AFTER
fun <T> <caret>T.bar() {
toString()
}
fun <T> foo(a: T) {
a.bar()
}
@@ -0,0 +1,9 @@
// CHECK_ERRORS_AFTER
fun <T> bar(t: T) {
t.toString()
}
fun <T> foo(a: T) {
bar(a)
}