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
for (i in 0...16) { trace("hello"); }
I get Warning: Unused variable
Warning: Unused variable
Would be nice to suppress this kind of errors, because there is no other alternative.
I tried underscore but that didn't help
for (_ in 0...16) { trace("hello"); }
Windows 10 Haxe 4.0.0-rc.2
The text was updated successfully, but these errors were encountered:
Are you talking about diagnostics in FlashDevelop? In VSCode these are just grayed out instead of displaying as an actual warning.
Seems like this would need to be a setting on FD's end?
Sorry, something went wrong.
cc @SlavaRa Is there something HaxeDevelop can do here?
Some idea's from @Gama11 on the chat:
It should be easy for FD to check if the unused range is a _.
_
IMO unused code shouldn't be displayed as warnings to begin with, much nicer to gray it out
@markknol Hi, I'll be in the chat after the main job :)
Let's never warn about unused variables if the variable is named _.
c75f836
Thanks! Nice solution!
Simn
No branches or pull requests
I get
Warning: Unused variable
Would be nice to suppress this kind of errors, because there is no other alternative.
I tried underscore but that didn't help
The text was updated successfully, but these errors were encountered: