Checking for different receiver in implicit calls. They are considered not recursive.

This commit is contained in:
Evgeny Gerashchenko
2015-04-08 16:37:41 +03:00
parent 01b8718ac7
commit 4c5bfaeb8b
3 changed files with 42 additions and 14 deletions
@@ -0,0 +1,14 @@
private fun Any.foo() {
with("different extension receiver") {
foo()
}
}
class Klass(p: String) {
private fun bar() {
with(Klass("different dispatch receiver")) {
bar()
}
}
}