"Receiver parameter is never used" inspection: don't report it when anonymous function is called with receiver
#KT-41246 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
112e07814e
commit
bcbb90dd81
@@ -0,0 +1,6 @@
|
||||
class A {
|
||||
fun a() {
|
||||
val f = fun <caret>A.() {
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class A {
|
||||
fun a() {
|
||||
val f = fun() {
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class A {
|
||||
fun a() {
|
||||
(fun <caret>A.() {
|
||||
})()
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
class A {
|
||||
fun a() {
|
||||
(fun() {
|
||||
})()
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// PROBLEM: none
|
||||
class A {
|
||||
fun a() {
|
||||
this.(fun <caret>A.() {
|
||||
})()
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// PROBLEM: none
|
||||
class A
|
||||
|
||||
fun test(a: A) {
|
||||
a.(fun <caret>A.() {
|
||||
})()
|
||||
}
|
||||
Reference in New Issue
Block a user