vardcl=require("dcl/debug");varA=dcl({declaredClass:"A"});dcl.chainAfter(A,"m");varB=dcl({declaredClass:"B"});dcl.chainBefore(B,"m");varChainConflict=dcl([A,B],{declaredClass:"ChainConflict"});// At this point dcl.ChainingError will be thrown.
You will see the following exception:
1
dcl: conflicting chain directives in ChainConflict for m, was after, set to before