-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
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
Incorrect force_unwrapping violation with array IUO #1710
Comments
Are you sure you're using 0.20.1? I couldn't reproduce it.
|
It is reproducible with 0.20.1. It is triggered when an implicitly unwrapped array/dictionary variable is declared inside a function, closure, brackets, etc. For instance:
Or:
#1620 should not have introduced this. But I was not aware of SourceKitten limitation ( #136, jpsim/SourceKitten#151) when reporting local variable declaration at the time I wrote the fix for subscripts. I've been trying to fix it for a while but no progress so far. |
On 0.20.1, the following code triggers a force_unwrapping violation:
I believe it is due to #1620
The text was updated successfully, but these errors were encountered: