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]: SymbolFlags.isFlagOn methos is not working properly for readonly types #43484

Open
SasinduDilshara opened this issue Oct 11, 2024 · 1 comment
Labels
Area/Compiler Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug

Comments

@SasinduDilshara
Copy link
Contributor

SasinduDilshara commented Oct 11, 2024

Description

TheSymbolFlags.isFlagOn(SymbolFlags.READONLY, type.getFlags()) is not working properly when we try to check a Btype is readonly or not.

Please refer to https://github.com/ballerina-platform/module-ballerina-data.jsondata/pull/45/files#r1796678932 for more details.

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@SasinduDilshara SasinduDilshara added Type/Bug Area/Compiler Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Oct 11, 2024
@SasinduDilshara
Copy link
Contributor Author

The worksround is to use type.isReadonly() method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Compiler Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Projects
None yet
Development

No branches or pull requests

1 participant