The examples OperatorEnclosingExtendsand OperatorFunctionEnclosingExtendsare problematic for a number of reasons:
They check a rule that does not exist, it is only operator record that cannot have extend from enclosing scopes (tested by OperatorRecordEnclosingExtends).
They are semantically invalid since operator and operator function must be directly in operator record
They are semantically invalid since Complex.A.'+' will not be found, it is OP.Complex.A.'+'.
Instead of trying to fix them I propose to simple remove them, since there is an actual test for the rule.
The examples
OperatorEnclosingExtends
andOperatorFunctionEnclosingExtends
are problematic for a number of reasons:OperatorRecordEnclosingExtends
).Complex.A.'+'
will not be found, it isOP.Complex.A.'+'
.Instead of trying to fix them I propose to simple remove them, since there is an actual test for the rule.