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:
+8
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user