library test; // // Problems in library: // // pkg/front_end/testcases/inference/future_then_explicit_future.dart:15:99: Error: A value of type 'List' can't be assigned to a variable of type 'FutureOr>>'. // - 'List' is from 'dart:core'. // - 'Future' is from 'dart:async'. // /*@returnType=FutureOr*>*>**/ (/*@type=int**/ x) => /*@typeArgs=dynamic*/ []); // ^ // // pkg/front_end/testcases/inference/future_then_explicit_future.dart:16:25: Error: A value of type 'Future>>' can't be assigned to a variable of type 'Future>'. // - 'Future' is from 'dart:async'. // - 'List' is from 'dart:core'. // Future> y = x; // ^ // import self as self; import "dart:async" as asy; import "dart:core" as core; import "dart:async"; static method m1() → dynamic { asy::Future* f; asy::Future*>*>* x = f.{asy::Future::then}*>*>((core::int* x) → FutureOr*>*>* => let final Never* #t1 = invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:15:99: Error: A value of type 'List' can't be assigned to a variable of type 'FutureOr>>'. - 'List' is from 'dart:core'. - 'Future' is from 'dart:async'. /*@returnType=FutureOr*>*>**/ (/*@type=int**/ x) => /*@typeArgs=dynamic*/ []); ^" in [] as{TypeError} FutureOr*>*>*); asy::Future*>* y = let final Never* #t2 = invalid-expression "pkg/front_end/testcases/inference/future_then_explicit_future.dart:16:25: Error: A value of type 'Future>>' can't be assigned to a variable of type 'Future>'. - 'Future' is from 'dart:async'. - 'List' is from 'dart:core'. Future> y = x; ^" in x as{TypeError} asy::Future*>*; } static method m2() → dynamic { asy::Future* f; asy::Future*>* x = f.{asy::Future::then}*>((core::int* x) → core::List* => []); asy::Future*>* y = x; } static method main() → dynamic {}