Change Signature: Replace entire JetThisExpression when converting receiver to parameter #KT-7970 Fixed

This commit is contained in:
Alexey Sedunov
2015-06-11 21:15:49 +03:00
parent e481ed756d
commit 64bbbac9dc
4 changed files with 39 additions and 2 deletions
@@ -0,0 +1,10 @@
// CHECK_ERRORS_AFTER
class C {
fun f() {
fun local(any: Any) {
if (any is String) {
any.length()
}
}
}
}
@@ -0,0 +1,10 @@
// CHECK_ERRORS_AFTER
class C {
fun f() {
fun Any.<caret>local() {
if (this is String) {
this.length()
}
}
}
}