Files
openide/plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/ExplicitThis.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

20 lines
350 B
HTML

<html>
<body>
Reports an explicit <code>this</code> when it can be omitted.
<p><b>Example:</b></p>
<pre><code>
class C {
private val i = 1
fun f() = this.i
}
</code></pre>
<p>The quick-fix removes the redundant <code>this</code>:</p>
<pre><code>
class C {
private val i = 1
fun f() = i
}
</code></pre>
</body>
</html>