Data flow to/from here: supported expected/actual declarations and extension receivers
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// FLOW: OUT
|
||||
|
||||
class C {
|
||||
fun String.extensionFun(): Any {
|
||||
with("A") {
|
||||
println(this.length)
|
||||
println(this@extensionFun.length)
|
||||
}
|
||||
return this@C
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
val x = <caret>"".extensionFun()
|
||||
}
|
||||
}
|
||||
|
||||
inline fun <T, R> with(receiver: T, block: T.() -> R): R {
|
||||
return receiver.block()
|
||||
}
|
||||
Reference in New Issue
Block a user