Render "<" properly in HTML

This commit is contained in:
Andrey Breslav
2014-10-13 19:28:22 +04:00
parent 2bf6db003a
commit f41a8d2c00
2 changed files with 3 additions and 3 deletions
@@ -372,8 +372,8 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
// Foo[] -> Array<(out) Foo!>!
String array = replacePrefixes(
lowerRendered, kotlinPrefix + "Array<", upperRendered, kotlinPrefix + "Array<out ",
kotlinPrefix + "Array<(out) "
lowerRendered, kotlinPrefix + escape("Array<"), upperRendered, kotlinPrefix + escape("Array<out "),
kotlinPrefix + escape("Array<(out) ")
);
if (array != null) return array;
return "(" + renderNormalizedType(lower) + ".." + renderNormalizedType(upper) + ")";
@@ -2,4 +2,4 @@ fun ktTest() {
Test.<caret>foo("SomeTest")
}
// INFO: <b>public</b> <b>open</b> <b>fun</b> foo(param: String!): (Array&lt;Any!&gt;..Array&lt;out Any!&gt;?)<br/>Java declaration:<br/>Test...
// INFO: <b>public</b> <b>open</b> <b>fun</b> foo(param: String!): Array&lt;(out) Any!&gt;!<br/>Java declaration:<br/>Test...