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

Improve error when parameter name & type are given the wrong way around #5933

Open
afscrome opened this issue Feb 10, 2022 · 0 comments
Open
Labels
enhancement New feature or request error-message

Comments

@afscrome
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Coming from a C# background, I constantly find myself writing the following

param string foo

Describe the solution you'd like
It would be really nice if bicep could detect these scenarios where the type and value are the wrong way around. (specifically when the type is invalid, but the variable name is a valid type), and highlight that as a specific error (and with a code fix)

image

i.e. the error message could say something like:

Did you mean param foo string

@afscrome afscrome added the enhancement New feature or request label Feb 10, 2022
@ghost ghost added the Needs: Triage 🔍 label Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request error-message
Projects
None yet
Development

No branches or pull requests

2 participants