[FE 1.0] Don't check star projections in PrivateInlineFunctionsReturningAnonymousObjectsChecker
^KT-56692 Fixed
This commit is contained in:
committed by
Space Team
parent
2a022ca9e0
commit
cbc8b74e89
+1
@@ -29,6 +29,7 @@ object PrivateInlineFunctionsReturningAnonymousObjectsChecker : DeclarationCheck
|
||||
private fun checkTypeAndArguments(type: KotlinType, reportOn: PsiElement, context: DeclarationCheckerContext) {
|
||||
checkType(type, reportOn, context)
|
||||
for (argument in type.arguments) {
|
||||
if (argument.isStarProjection) continue
|
||||
checkTypeAndArguments(argument.type, reportOn, context)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user