Fix descriptor renderer for LazyType
This commit is contained in:
@@ -308,6 +308,9 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private String renderNormalizedType(@NotNull JetType type) {
|
private String renderNormalizedType(@NotNull JetType type) {
|
||||||
|
if (type instanceof LazyType && debugMode) {
|
||||||
|
return type.toString();
|
||||||
|
}
|
||||||
if (TypesPackage.isFlexible(type)) {
|
if (TypesPackage.isFlexible(type)) {
|
||||||
if (debugMode) {
|
if (debugMode) {
|
||||||
return renderFlexibleTypeWithBothBounds(TypesPackage.flexibility(type).getLowerBound(),
|
return renderFlexibleTypeWithBothBounds(TypesPackage.flexibility(type).getLowerBound(),
|
||||||
@@ -344,9 +347,6 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
|
|||||||
}
|
}
|
||||||
return "???";
|
return "???";
|
||||||
}
|
}
|
||||||
if (type instanceof LazyType && debugMode) {
|
|
||||||
return type.toString();
|
|
||||||
}
|
|
||||||
if (type.isError()) {
|
if (type.isError()) {
|
||||||
return renderDefaultType(type);
|
return renderDefaultType(type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user