Class IsSelfComparison

java.lang.Object
org.ek9lang.compiler.support.sameness.IsSelfComparison
All Implemented Interfaces:
BiPredicate<IAggregateSymbol, MethodSymbol>

public final class IsSelfComparison extends Object implements BiPredicate<IAggregateSymbol, MethodSymbol>
THE "does this operator compare its owner with ITSELF?" of B18 (Sameness): an operator taking exactly one argument of a type the owner is assignable to. 🔑 SELF means "any type this type is assignable to" - itself, a super, a trait, Any (Fable review F1); ==(Integer) or <(Date) compare with an unrelated type and are not self-comparisons. Hold one and ask it.