Docs
Linting rules

E006: pure-function-call-unused

Checks for calls to `@pure` functions where the result is not used.

Metadata

  • Code: E006
  • Rule: pure-function-call-unused
  • Status: Stable since v1.0.0
  • Quick fix: not available

What it does

Checks for calls to @pure functions where the result is not used.

Why is this bad?

An unused result may indicate a missing assignment or check. A @pure call can still throw an exception. Use the result, or discard it explicitly with val _ = ....

Example

fun main() {
    createEmptyCell();
E006: result of pure function is not used
}
Source code

Last updated on

On this page