Fix/Improve Nullability Analysis in Loops #4955
Replies: 2 comments
-
Analyzing arbitrary loop is impossible. The current behavior only handles constant If we have something like "range based loops", analysis for constant ranges is good. Treating |
Beta Was this translation helpful? Give feedback.
-
The definite assignment flow analysis in the compiler doesn't handle this kind of case either. If you don't give |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the example below,
ret
should be definitely assigned since the loop is guaranteed to run.Beta Was this translation helpful? Give feedback.
All reactions