Add inspection to detect use of callable reference as a lambda body
So #KT-17053 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
53e11cbeb5
commit
0eceef1519
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
x(1) {<caret> ::y }
|
||||
}
|
||||
|
||||
fun y() {
|
||||
|
||||
}
|
||||
|
||||
fun x(number: Int, func: () -> Unit) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user