Add more detailed message for EA-227305 and EA-226744
This commit is contained in:
@@ -20,7 +20,9 @@ val KotlinType.nameIfStandardType: Name?
|
|||||||
get() = constructor.declarationDescriptor?.takeIf(KotlinBuiltIns::isBuiltIn)?.name
|
get() = constructor.declarationDescriptor?.takeIf(KotlinBuiltIns::isBuiltIn)?.name
|
||||||
|
|
||||||
fun KotlinType.getJetTypeFqName(printTypeArguments: Boolean): String {
|
fun KotlinType.getJetTypeFqName(printTypeArguments: Boolean): String {
|
||||||
val declaration = requireNotNull(constructor.declarationDescriptor)
|
val declaration = requireNotNull(constructor.declarationDescriptor) {
|
||||||
|
"declarationDescriptor is null for constructor = $constructor with ${constructor.javaClass}"
|
||||||
|
}
|
||||||
if (declaration is TypeParameterDescriptor) {
|
if (declaration is TypeParameterDescriptor) {
|
||||||
return StringUtil.join(declaration.upperBounds, { type -> type.getJetTypeFqName(printTypeArguments) }, "&")
|
return StringUtil.join(declaration.upperBounds, { type -> type.getJetTypeFqName(printTypeArguments) }, "&")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user