Introduce Variable: Compare receivers (both implicit and explicit) when looking for expression occurrences

#KT-4819 Fixed
This commit is contained in:
Alexey Sedunov
2014-04-18 17:31:35 +04:00
parent 40ee454e67
commit e052a64767
4 changed files with 50 additions and 8 deletions
@@ -0,0 +1,17 @@
class A {
val value : Int = 0
}
fun foo(body: A.() -> Unit) {}
fun bar() {
foo {
print(<selection>value</selection>)
print(value)
}
foo {
print(value)
print(value)
}
}