Introduce Variable: Do not compare explicit receivers using ReceiverValue
#KT-5319 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
fun main(args: Array<String>) {
|
||||
with(A()) {
|
||||
println(<selection>prop</selection>)
|
||||
println(prop)
|
||||
}
|
||||
}
|
||||
|
||||
class A {
|
||||
val prop = 1
|
||||
}
|
||||
|
||||
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
|
||||
Reference in New Issue
Block a user