Closed fivegreenapples closed 1 year ago
@fivegreenapples fixed in 0.51.13
Awesome! Thank you!
I have the same problem in 0.51.13. Should I create a new issue?
Example:
private func isValid(indexPath: IndexPath?) {
if let indexPath, indexPath.row < self.tableView.numberOfRows(inSection: 0) {
return true
} else {
return false
}
}
I found this fairly minimal test case causes the
number
argument to be stripped incorrectly byunusedArguments
:Interestingly, if you remove the
number == 456
it parses fine. i.e. this is left untouched and compiles: