You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a warning or something if a test expression is statically simplified to true or false, but they weren't written using true or false literals. This usually means that there was a typo or something.
// not a warning, they wrote true explicitly
if true {
do_thing()
}
// warn, because did you mean to test some other register?
if a == a {
do_thing()
}
The text was updated successfully, but these errors were encountered:
It would be nice to have a warning or something if a test expression is statically simplified to true or false, but they weren't written using
true
orfalse
literals. This usually means that there was a typo or something.The text was updated successfully, but these errors were encountered: