Commit 68ba13e
With NNBD null-shorting is performed.
So, the type of `a?.b.c` is nullable, but the type of `c` is not.
Everything after `a?` is just not executed if `a` is null.
[email protected]
Change-Id: I705051080b8cc2bb5014355688561b0f3dccc0d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115660
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>1 parent a7723d5 commit 68ba13e
File tree
3 files changed
+328
-12
lines changed- pkg/analyzer
- lib/src/generated
- test/src/diagnostics
3 files changed
+328
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4364 | 4364 | | |
4365 | 4365 | | |
4366 | 4366 | | |
4367 | | - | |
4368 | | - | |
4369 | | - | |
4370 | | - | |
4371 | | - | |
4372 | | - | |
4373 | | - | |
| 4367 | + | |
4374 | 4368 | | |
4375 | 4369 | | |
4376 | 4370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
| |||
967 | 968 | | |
968 | 969 | | |
969 | 970 | | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | 971 | | |
975 | 972 | | |
976 | 973 | | |
977 | 974 | | |
978 | 975 | | |
| 976 | + | |
979 | 977 | | |
980 | 978 | | |
981 | 979 | | |
| |||
2006 | 2004 | | |
2007 | 2005 | | |
2008 | 2006 | | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
2009 | 2026 | | |
2010 | 2027 | | |
2011 | 2028 | | |
| |||
2120 | 2137 | | |
2121 | 2138 | | |
2122 | 2139 | | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
2123 | 2152 | | |
2124 | 2153 | | |
2125 | 2154 | | |
| |||
0 commit comments