Fix sporadic false-positive "Receiver parameter is never used" for local functions (KT-26481)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class My(val x: Int)
|
||||
class Your(val x: Int)
|
||||
|
||||
fun Your.foo(): Int {
|
||||
println(x)
|
||||
fun My.bar(): Int {
|
||||
return x
|
||||
}
|
||||
return My(0).bar() + x
|
||||
}
|
||||
|
||||
fun bar() {
|
||||
fun String.foo() = this.length
|
||||
"".foo()
|
||||
}
|
||||
|
||||
fun baz() {
|
||||
fun String.foo() = length
|
||||
"".foo()
|
||||
}
|
||||
Reference in New Issue
Block a user