Only render exact function types in special syntax

This commit is contained in:
Andrey Breslav
2013-11-20 16:43:43 +04:00
parent 9f5ee13c20
commit bfbb200ba8
2 changed files with 27 additions and 1 deletions
@@ -213,7 +213,7 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
if (type.isError()) {
return type.toString();
}
if (KotlinBuiltIns.getInstance().isFunctionOrExtensionFunctionType(type) && prettyFunctionTypes) {
if (KotlinBuiltIns.getInstance().isExactFunctionOrExtensionFunctionType(type) && prettyFunctionTypes) {
return renderFunctionType(type);
}
return renderDefaultType(type);