Back to Intellij Community

ImplicitThis

plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/ImplicitThis.html

2025.3-rc-2273 B
Original Source

Reports usages of implicit this.

Example:

class Foo {
      fun s() = ""

      fun test() {
          s()
      }
  }

The quick fix specifies this explicitly:

class Foo {
      fun s() = ""

      fun test() {
          this.s()
      }
  }