Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Having __execute__ as a function name gives redeclared symbol error when execute bal test #41302

Closed
gabilang opened this issue Aug 28, 2023 · 1 comment
Labels
Area/TestFramework IceBox Older issues that are not being actively worked on but may be revisited in the future. Priority/Low Reason/Other None of the other reasons. Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug

Comments

@gabilang
Copy link
Contributor

Description

Since Ballerina doesn't specify __execute__ as a reserved name, it can be a spec deviation.

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Test Framework

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Area/TestFramework labels Aug 28, 2023
@gabilang
Copy link
Contributor Author

We have introduced __gH7W16ntestExecState__ as a module level variable name in the generated bal file for the test execution. It may also have collision with user defined names (probability is low since it has been encoded with some random chars). Since it can also be considered as spec deviation, It's more appropriate to codegen this variable.

@Dilhasha Dilhasha added Reason/Other None of the other reasons. IceBox Older issues that are not being actively worked on but may be revisited in the future. labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/TestFramework IceBox Older issues that are not being actively worked on but may be revisited in the future. Priority/Low Reason/Other None of the other reasons. Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug
Projects
None yet
Development

No branches or pull requests

3 participants