Commit 4a9c2c0
Fix nonspecific type annotation in _getNonPromotionReasons.
Without this change, the local variable `nonPromotionHistory` winds up
getting type `NonPromotionHistory<dynamic>?`, and then the assignment
`Type nonPromotedType = nonPromotionHistory.type;` winds up performing
an implicit dynamic downcast.
Change-Id: I4ece2433ac90623b22aa14cff3e1bfe16c9b491c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/389260
Reviewed-by: Kallen Tu <[email protected]>
Commit-Queue: Paul Berry <[email protected]>1 parent 7088dc4 commit 4a9c2c0
File tree
1 file changed
+1
-1
lines changed1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5821 | 5821 | | |
5822 | 5822 | | |
5823 | 5823 | | |
5824 | | - | |
| 5824 | + | |
5825 | 5825 | | |
5826 | 5826 | | |
5827 | 5827 | | |
| |||
0 commit comments