Commit 3771ddd
[VM/nnbd] Force the DeclarationType of a class to have legacy nullability.
This is a workaround to avoid caching a non-legacy type (possibly provided
by the CFE) as the canonical type of a non-generic class and later returned as
the runtime type of an instance of this class.
Hopefully fixes https://buganizer.corp.google.com/issues/144304690
Change-Id: Iaea364b9b743b05bde600f0aa784d5a8105728d7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124920
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Régis Crelier <regis@google.com>1 parent 024a4b2 commit 3771ddd
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4351 | 4351 | | |
4352 | 4352 | | |
4353 | 4353 | | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
4354 | 4359 | | |
4355 | | - | |
| 4360 | + | |
4356 | 4361 | | |
4357 | 4362 | | |
4358 | | - | |
| 4363 | + | |
4359 | 4364 | | |
4360 | 4365 | | |
4361 | 4366 | | |
| |||
0 commit comments