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