Render "<" properly in HTML
This commit is contained in:
@@ -372,8 +372,8 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
|
|||||||
|
|
||||||
// Foo[] -> Array<(out) Foo!>!
|
// Foo[] -> Array<(out) Foo!>!
|
||||||
String array = replacePrefixes(
|
String array = replacePrefixes(
|
||||||
lowerRendered, kotlinPrefix + "Array<", upperRendered, kotlinPrefix + "Array<out ",
|
lowerRendered, kotlinPrefix + escape("Array<"), upperRendered, kotlinPrefix + escape("Array<out "),
|
||||||
kotlinPrefix + "Array<(out) "
|
kotlinPrefix + escape("Array<(out) ")
|
||||||
);
|
);
|
||||||
if (array != null) return array;
|
if (array != null) return array;
|
||||||
return "(" + renderNormalizedType(lower) + ".." + renderNormalizedType(upper) + ")";
|
return "(" + renderNormalizedType(lower) + ".." + renderNormalizedType(upper) + ")";
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ fun ktTest() {
|
|||||||
Test.<caret>foo("SomeTest")
|
Test.<caret>foo("SomeTest")
|
||||||
}
|
}
|
||||||
|
|
||||||
// INFO: <b>public</b> <b>open</b> <b>fun</b> foo(param: String!): (Array<Any!>..Array<out Any!>?)<br/>Java declaration:<br/>Test...
|
// INFO: <b>public</b> <b>open</b> <b>fun</b> foo(param: String!): Array<(out) Any!>!<br/>Java declaration:<br/>Test...
|
||||||
Reference in New Issue
Block a user