mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-07 09:56:52 +01:00
Add P0 extensibility compatibility knowledge
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 645349fd-1892-48f3-8a84-db77d6abd1c3
This commit is contained in:
parent
9214f73819
commit
23af51e02d
18 changed files with 307 additions and 15 deletions
|
|
@ -0,0 +1,36 @@
|
|||
// Demonstration-only AL. A removed enum-extension value left ordinal 700 in data.
|
||||
enum 50503 "Delivery Method Bad" implements "I Delivery Method Bad"
|
||||
{
|
||||
Extensible = true;
|
||||
DefaultImplementation = "I Delivery Method Bad" = "Default Delivery Method Bad";
|
||||
|
||||
value(0; Default)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
interface "I Delivery Method Bad"
|
||||
{
|
||||
procedure Deliver();
|
||||
}
|
||||
|
||||
codeunit 50504 "Default Delivery Method Bad" implements "I Delivery Method Bad"
|
||||
{
|
||||
procedure Deliver()
|
||||
begin
|
||||
end;
|
||||
}
|
||||
|
||||
codeunit 50505 "Delivery Dispatch Bad"
|
||||
{
|
||||
procedure DeliverPersistedValue()
|
||||
var
|
||||
DeliveryMethod: Enum "Delivery Method Bad";
|
||||
Delivery: Interface "I Delivery Method Bad";
|
||||
begin
|
||||
DeliveryMethod := 700;
|
||||
// DefaultImplementation does not handle an ordinal that is not declared.
|
||||
Delivery := DeliveryMethod;
|
||||
Delivery.Deliver();
|
||||
end;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue