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
file:///tmp/nested_futures.dart:8:10: Error: A value of type 'dart.async::Future<dart.async::Future<dart.core::String>>' can't be assigned to a variable of type 'dart.async::FutureOr<dart.core::String>'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.async::FutureOr<dart.core::String>'.
return moreStuff<Future<String>>(new Future.value('stuff'));
^
file:///tmp/nested_futures.dart:8:10: Error: A value of type 'dart.async::Future<dart.async::Future<dart.core::String>>' can't be assigned to a variable of type 'dart.async::FutureOr<dart.core::String>'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.async::FutureOr<dart.core::String>'.
return moreStuff<Future<String>>(new Future.value('stuff'));
^
I hit some code that has no errors or warnings with
dartanalyzer --strong
but has parse errors withdart --preview-dart-2
. Here's a contrived demo:Running with
dart --preview-dart-2
gives:Real world code is fixed in dart-lang/test#810
The text was updated successfully, but these errors were encountered: