Fix replacedBaseClause for selector which has implicit receiver
#KT-19666 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
interface Taggable {
|
||||
val tag: String
|
||||
}
|
||||
|
||||
fun Any.log() {
|
||||
val tag = <caret>if (this is Taggable) {
|
||||
tag
|
||||
}
|
||||
else {
|
||||
this::class.java.simpleName
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
interface Taggable {
|
||||
val tag: String
|
||||
}
|
||||
|
||||
fun Any.log() {
|
||||
val tag = (this as? Taggable)?.tag ?: this::class.java.simpleName
|
||||
}
|
||||
Reference in New Issue
Block a user