Linter

dotty.tools.dotc.typer.Linter
object Linter

A module for linter checks done at typer

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Linter.type

Members list

Value members

Concrete methods

def warnOnImplausiblePattern(pat: Tree, selType: Type)(using Context): Unit

If -Wimplausible-patterns is set, warn about pattern values that can match the scrutinee type only if there would be some user-defined equality method that equates values of the two types.

If -Wimplausible-patterns is set, warn about pattern values that can match the scrutinee type only if there would be some user-defined equality method that equates values of the two types.

Attributes

If -Wnonunit-statement is set, warn about statements in blocks that are non-unit expressions.

If -Wnonunit-statement is set, warn about statements in blocks that are non-unit expressions.

Attributes

Returns

true if a warning was issued, false otherwise