Skip to content

AL0157 with ControlAddIn type variable BC21 #7052

@oscarfernandezkurago

Description

@oscarfernandezkurago

1. Describe the bug
From version 21.0.40246.0 we´re getting an AL0157 error when declaring a variable of type ControlAddIn, that code has compiled well for the last two years until now.

2. To Reproduce
Create a variable of type ControlAddIn inside a codeunit.

3. Expected behavior
Compile without errors.

4. Actual behavior
AL0157 compiler error.

5. Versions:

  • AL Language: v10.0.608152
  • Visual Studio Code: 1.67.2
  • Business Central: Platform 21.0.40964.0 + Application 21.0.41052.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions