AL icon indicating copy to clipboard operation
AL copied to clipboard

Existing rule AppSourceCop Error AS0129 is incorrect.

Open wgross92 opened this issue 4 months ago • 0 comments

The rule prohibits interface extensions on the grounds that they interfere with existing implementations. However, the creator of this rule apparently only used AI to invent the rule without testing it, or simply has no idea about interfaces in AL. Incorrect reasoning behind the rule:

Interface A{ procedure x... } Inferdace B extends A{ procedure y... } Codeunit ABC implements A { //needs now procedure x and y }

Reality (show Doku https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-interfaces-in-al-extend): Interface A{ procedure x... } Inferdace B extends A{ procedure y... } Codeunit ABC implements A { //needs x } Codeunit DEF implements B { //needs x and y }

This rule prevents interface extensions. These do not constitute breaking changes, however.

wgross92 avatar Sep 11 '25 08:09 wgross92