Don't report UNUSED_PARAMETER in main from object #KT-37718 Fixed

This commit is contained in:
Mikhail Glukhikh
2020-03-26 18:25:51 +03:00
parent cec0f58544
commit 7bfd354a77
6 changed files with 35 additions and 0 deletions
@@ -745,6 +745,11 @@ class ControlFlowInformationProvider private constructor(
}
return
}
else -> {
if (owner.containingClassOrObject != null) {
return
}
}
}
}
if (functionDescriptor.isOperator && functionName in OperatorNameConventions.DELEGATED_PROPERTY_OPERATORS) {