Files
Anna Kozlova f61c7a4f60 [kotlin] quick doc: include references on builtins
^KTIJ-30157 fixed

GitOrigin-RevId: 03dcc246a778c7276fb94937b34e09beefa9a19d
2024-06-04 21:02:00 +00:00

13 lines
1.2 KiB
Kotlin

enum class E {
A
}
fun use() {
E.valueOf<caret>("A")
}
//INFO: <div class='definition'><pre><span style="color:#000080;font-weight:bold;">public</span> <span style="color:#000080;font-weight:bold;">final</span> <span style="color:#000080;font-weight:bold;">fun</span> <span style="color:#000000;">valueOf</span>(
//INFO: <span style="color:#000000;">value</span><span style="">: </span><span style="color:#000000;"><a href="psi_element://kotlin.String">String</a></span>
//INFO: )<span style="">: </span><span style="color:#000000;"><a href="psi_element://E">E</a></span></pre></div><div class='content'><p style='margin-top:0;padding-top:0;'>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></div><table class='sections'><tr><td valign='top' class='section'><p>Throws:</td><td valign='top'><p><code><a href="psi_element://IllegalArgumentException"><code><span style="color:#0000ff;">IllegalArgumentException</span></code></a></code> - if this enum type has no constant with the specified name</td></table>