You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: A value of type 'FutureOr<Future<int>>' can't be returned from an async function with return type 'Future<int>'.
- 'Future' is from 'dart:async'.
return ((da.Future.value(1, )) as da.FutureOr<dc.Future<dc.int>>);
Error: A value of type 'FutureOr<Future<int>>' can't be returned from an async function with return type 'Future<int>'.
- 'Future' is from 'dart:async'.
return ($1 as da.FutureOr<dc.Future<dc.int>>);
But removing type hint (or moving it before name) helps
Describe the bug
Examples:
This one works
This one doesn't
Also, sometimes removing ^:async doesn't help:
But removing type hint (or moving it before name) helps
The text was updated successfully, but these errors were encountered: