Fix descriptor renderer for LazyType

This commit is contained in:
Stanislav Erokhin
2014-10-22 13:08:33 +04:00
parent b7c473f59e
commit b69ed539ea
@@ -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);
}