cd44bc3fb0
#KT-5319 Fixed
12 lines
228 B
Kotlin
12 lines
228 B
Kotlin
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() |