microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
719 stars 242 forks source link

Error AS0049 on enum even after previous obsoletion. #7700

Open NKarolak opened 3 months ago

NKarolak commented 3 months ago

Related to #5997 from 2020:

In my previous app version, I've obsoleted an enum object. As long as the removed table field it is still attached to cannot be physically removed, I won't be ever able to delete the enum. Therefore, I'd like to set it internal at least.

But even with an obsoletion in the previous version, the enum object in the current version will error on compile:

The access modifier of the Enum '...' cannot be changed to a value that provides less access. (AS0049)

Versions: