Class CheckAndPopulateConstrainedType

java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase2.CheckAndPopulateConstrainedType
All Implemented Interfaces:
BiConsumer<AggregateSymbol,ISymbol>

class CheckAndPopulateConstrainedType extends RuleSupport implements BiConsumer<AggregateSymbol,ISymbol>
For Constrained Types, focus on checking it is possible to constrain the type and if so then clones the appropriate methods/operators over and alters the types as appropriate. Note that it must also ensure that any constructors on the Constraining type if pure are also marked pure. Once one constructor is pure all constructors must be pure.