DescriptionReify implicit casts for FutureOr
Before landing, two issues to resolve:
(1) We appear to allow sideways casts now without static error - e.g.,
List<Object> -> FutureOr<List<String>>
Is that intended? If so, it breaks an assumption that implicit casts
are from supertype to subtype.
(2) LUB and FutureOr
It appears that the LUB of, e.g., String and Future<String> is Object.
See fixes in tests to record casts back to FutureOr.
Fixes #29251
R=leafp@google.com
Committed: https://github.com/dart-lang/sdk/commit/bc3089838cd3fb1e3e84dacd2807b0cc89682d78
Patch Set 1 #
Total comments: 7
Patch Set 2 : Format #Patch Set 3 : Add back FutureOr case #
Created: 3 years, 8 months ago
(Patch set is too large to download)
Messages
Total messages: 9 (2 generated)
|