Open dzzzb opened 3 years ago
To confirm, this still doesn't error at design-time, which it should. And here's the code since who wants to type that all out:
tableextension 50100 CustomerExt extends Customer
{
fields
{
field(50100; "Customer Posting Group Desc."; Text[100])
{
Caption = 'Customer Posting Group Desc.';
FieldClass = FlowField;
Editable = false;
CalcFormula = lookup("Customer Posting Group".Description where("Code" = field("Customer Posting Group Desc.")));
}
}
}
Name: AL Language
Id: ms-dynamics-smb.al
Description: AL development tools for Dynamics 365 Business Central
Version: 8.2.550913
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dynamics-smb.al
The below code compiles without warning but, of course, fails at runtime with this message:
Such an unfortunate typo should be caught at compile time, rather than only being reported at runtime because it causes infinite recursion.