mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When we see an unused variable in a simple-enough "if/let" (also guard and while of course), fixit it into a comparison against nil instead of replacing the name of the variable with "_". Also special case initialization with an as? expression, since we can transform that into an "is" boolean test.