strictEquality

@compileTimeOnly("`strictEquality` can only be used at compile time in import statements")

Where imported, loose equality using eqAny is disabled.

Why allow and control the feature? For compatibility and migration reasons, strict equality is opt-in. See linked documentation for more information.

See also
Source
language.scala
class Object
trait Matchable
class Any