[ddc] Async return type FutureOr<Object>
returns Future<dynamic>
#54318
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
web-dev-compiler
This is the DDC specific issue for the behavior reported in #54311, which has the details (some details here: #54311 (comment)).
The main point is that we can have an async function with declared return type
FutureOr<Object>
that actually returns aFuture<dynamic>
(it should return aFuture<Object>
). The Kernel code which is generated for the example program seems to be correct, so the issue seems to be caused by the processing of this Kernel code in backends.The text was updated successfully, but these errors were encountered: