bcquality/microsoft/knowledge/interfaces/handle-unknown-enum-ordinals-with-unknownvalueimplementation.good.al
Jesper Schulz-Wedde 363f08f47e
Add P0 event and interface compatibility knowledge (#98)
* Add P0 extensibility compatibility knowledge

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 645349fd-1892-48f3-8a84-db77d6abd1c3

* Correct event compatibility guidance

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 645349fd-1892-48f3-8a84-db77d6abd1c3

---------

Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
2026-07-14 12:51:59 +02:00

34 lines
813 B
AL

// Demonstration-only AL. UnknownValueImplementation requires runtime 7.0 / BC18.
interface "I Delivery Method"
{
procedure Deliver();
}
codeunit 50500 "Unknown Delivery Method" implements "I Delivery Method"
{
procedure Deliver()
begin
Error(UnknownMethodErr);
end;
var
UnknownMethodErr: Label 'The saved delivery method is no longer installed. Select another method.';
}
codeunit 50501 "Default Delivery Method" implements "I Delivery Method"
{
procedure Deliver()
begin
end;
}
enum 50502 "Delivery Method" implements "I Delivery Method"
{
Extensible = true;
DefaultImplementation = "I Delivery Method" = "Default Delivery Method";
UnknownValueImplementation = "I Delivery Method" = "Unknown Delivery Method";
value(0; Default)
{
}
}