Convert Parameter to Receiver: Replace parameter references with labeled this-expressions (before shortening them). Report conflict when this-label is ambiguous

#KT-7681 Fixed
This commit is contained in:
Alexey Sedunov
2015-05-12 16:39:42 +03:00
parent 2dac70a4f7
commit e7748e2700
7 changed files with 91 additions and 11 deletions
@@ -0,0 +1,8 @@
// SHOULD_FAIL_WITH: Parameter reference can't be safely replaced with this@foo since @foo is ambiguous in this context
fun foo(<caret>bar: Int) {
object {
fun foo() {
bar + 1
}
}
}