Render flexible types in debug mode

This commit is contained in:
Andrey Breslav
2014-06-24 16:27:46 +04:00
parent 90e4b09272
commit 6c50e1b237
@@ -301,6 +301,10 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
}
return "???";
}
if (type instanceof FlexibleType && debugMode) {
FlexibleType flexibleType = (FlexibleType) type;
return "(" + renderType(flexibleType.getLowerBound()) + ".." + renderType(flexibleType.getUpperBound()) + ")";
}
if (type instanceof LazyType && debugMode) {
return type.toString();
}