Report UNUSED_DESTRUCTURED_PARAMETER_ENTRY

on destructured lambda parameters

 #KT-14347 Fixed
This commit is contained in:
Denis Zharkov
2016-10-18 18:25:12 +03:00
parent 9716d2ad54
commit 51f4244980
11 changed files with 109 additions and 16 deletions
@@ -31,7 +31,7 @@ fun bar() {
}
// From KEEP: Component-functions are resolved in the scope that contains the lambda
foobaz { (<!COMPONENT_FUNCTION_MISSING!>a<!>, <!COMPONENT_FUNCTION_MISSING!>b<!>) ->
foobaz { (<!COMPONENT_FUNCTION_MISSING, UNUSED_DESTRUCTURED_PARAMETER_ENTRY!>a<!>, <!COMPONENT_FUNCTION_MISSING, UNUSED_DESTRUCTURED_PARAMETER_ENTRY!>b<!>) ->
}
// From KEEP: Component-functions are resolved in the scope that contains the lambda