[FIR] Make type parameters inaccessible for non-inner nested types
#KT-57209
This commit is contained in:
committed by
Space Team
parent
c39ab956a0
commit
1f0d56e157
@@ -131,3 +131,8 @@ fun ConeKotlinType.renderReadableWithFqNames(): String {
|
||||
return builder.toString()
|
||||
}
|
||||
|
||||
fun ConeKotlinType.hasError(): Boolean = when (this) {
|
||||
is ConeErrorType -> true
|
||||
is ConeFlexibleType -> lowerBound.hasError() || upperBound.hasError()
|
||||
else -> typeArguments.any { it is ConeKotlinType && it.hasError() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user