Files
openide/plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/OptionalExpectation.html
Ilya Kirillov 3386f8f5a9 [kotlin] move inspection descriptions to separate module to reuse in K2
GitOrigin-RevId: e9d7382f4d640e27b1958d1bf2d4c3e639915137
2022-07-13 09:59:31 +00:00

17 lines
506 B
HTML

<html>
<body>
Reports optionally expected annotations without actual annotation in some platform modules.
<p><b>Example:</b></p>
<pre><code>// common code
@OptionalExpectation
expect annotation class JvmName(val name: String)
@JvmName(name = "JvmFoo")
fun foo() { }
// jvm code
actual annotation class JvmName(val name: String)
</code></pre>
<p>The inspection also reports cases when <code>actual annotation class JvmName</code> is omitted for non-JVM platforms (for example, Native).</p>
</body>
</html>