Files
kotlin-fork/idea/testData/editor/quickDoc/OnEnumValueOfFunction.kt
T
2020-04-03 12:38:51 +03:00

13 lines
779 B
Kotlin
Vendored

enum class E {
A
}
fun use() {
E.valueOf<caret>("A")
}
//INFO: <div class='definition'><pre><a href="psi_element://E"><code>E</code></a><br>public final fun <b>valueOf</b>(
//INFO: value: String
//INFO: ): <a href="psi_element://E">E</a></pre></div><div class='content'><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></div><table class='sections'><tr><td valign='top' class='section'><p>Throws:</td><td valign='top'><p><code><a href="psi_element://IllegalArgumentException"><code>IllegalArgumentException</code></a></code> - if this enum type has no constant with the specified name</td></table>