Change Signature: Replace entire JetThisExpression when converting receiver to parameter #KT-7970 Fixed
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user