Fix for KT-14819 Quick documentation for special Enum functions doesn't work

#KT-14819 fixed
This commit is contained in:
Simon Ogorodnik
2016-12-15 19:44:25 +03:00
committed by Simon Ogorodnik
parent fa01a4efad
commit d0cf1b0c5f
10 changed files with 153 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
enum class E {
A
}
fun use() {
E.valueOf<caret>("A")
}
//INFO: <b>public</b> <b>final</b> <b>fun</b> valueOf(value: String): <a href="psi_element://E">E</a> <i>defined in</i> E<p>Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)</p>
//INFO: <dl><dt><b>Throws:</b></dt><dd><code>IllegalArgumentException</code> - if this enum type has no constant with the specified name</dd></dl>