We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
brighterscript support the definition of constants but it seems to me that bslint doesn't support them. with a simple file like
const MYCONST = "..." sub mysub() ? MYCONST end sub
bslint yields error BSLINT1001: Using uninitialised variable 'MYCONST' when this file is included in scope 'source'.
bslint
error BSLINT1001: Using uninitialised variable 'MYCONST' when this file is included in scope 'source'
The text was updated successfully, but these errors were encountered:
@TwitchBronBron I'm running into this as well. Any issues with doing this?
taschmidt@5eff31f
It seems to fix it for me.
Sorry, something went wrong.
That looks fine to me! Feel free to open a PR with the fix and a unit test verifying the fix, and I'm happy to merge it and cut a release for you!
Done #85
Successfully merging a pull request may close this issue.
brighterscript support the definition of constants but it seems to me that bslint doesn't support them.
with a simple file like
bslint
yieldserror BSLINT1001: Using uninitialised variable 'MYCONST' when this file is included in scope 'source'
.The text was updated successfully, but these errors were encountered: