AL0603: Implicit Conversion
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 881
- Forks
- 285
- Avg merge
- 3d 36m
- Merged PRs (30d)
- 1
Description
Description
Hi, I've just downloaded the latest AL Language from docker and I've found out this warning.
I have a simple question: How can it be handled? is there some c# cast or something like that?
if MyEnum in [0, 1, 2, 5, 6] then
this will throw this warning but the enums aren't they an integer-based?
Can I do something like that (or like C#)?
if MyEnum in (Enum)[0, 1, 2, 5, 6] then
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue provides no repository file, test, or entry point. Reproduce the AL snippet that raises AL0603 and investigate the compiler's enum-conversion diagnostic; done means establishing and documenting the supported handling, or identifying the required compiler change.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100