Closed weha closed 11 months ago
If regions already exist for a function, they should not be automatically created again.
codeunit 123456 "ESCATest" { Access = Public; SingleInstance = true; #region TestFunction [IntegrationEvent(false, false)] internal procedure TestFunction() begin end; #endregion TestFunction }
Then execute create regions will create extra regions. The location for either is probably debatable but creating secondary regions should not happen.
codeunit 123456 "ESCATest" { Access = Public; SingleInstance = true; #region TestFunction [IntegrationEvent(false, false)] #region TestFunction internal procedure TestFunction() begin end; #endregion TestFunction #endregion TestFunction }
We are testing a fix for this internally as we speak.
The fix for this will be included in the upcoming 2.0.29 release.
If regions already exist for a function, they should not be automatically created again.
Then execute create regions will create extra regions. The location for either is probably debatable but creating secondary regions should not happen.