Class CopyNeedsRuntimeCheck

java.lang.Object
org.ek9lang.compiler.support.copy.CopyNeedsRuntimeCheck
All Implemented Interfaces:
Predicate<IAggregateSymbol>

public final class CopyNeedsRuntimeCheck extends Object implements Predicate<IAggregateSymbol>
THE "can a copy into this owner meet an object of a different class?" - only when the owner may have sub-types. A CLOSED owner's own :=:(Owner) only ever meets an Owner, so it skips the check (PolymorphicCopy). Hold one and ask it.