| // Formatted problems: |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:16:67: Error: A value of type 'test::MyStream<dynamic>' can't be assigned to a variable of type 'dart.core::List<dart.core::int>'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'dart.core::List<dart.core::int>'. |
| // yield /*error:YIELD_OF_INVALID_TYPE*/ new /*@typeArgs=dynamic*/ MyStream(); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:17:64: Error: A value of type 'dart.core::List<dynamic>' can't be assigned to a variable of type 'dart.async::Stream<dart.core::List<dart.core::int>>'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Stream<dart.core::List<dart.core::int>>'. |
| // yield* /*error:YIELD_OF_INVALID_TYPE*/ /*@typeArgs=dynamic*/ []; |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:23:67: Error: A value of type 'dart.core::List<dynamic>' can't be assigned to a variable of type 'dart.core::Map<dart.core::int, dart.core::int>'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'dart.core::Map<dart.core::int, dart.core::int>'. |
| // yield /*error:YIELD_OF_INVALID_TYPE*/ new /*@typeArgs=dynamic*/ List(); |
| // ^ |
| // |
| // pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:24:73: Error: A value of type 'dart.core::Map<dynamic, dynamic>' can't be assigned to a variable of type 'dart.core::Iterable<dart.core::Map<dart.core::int, dart.core::int>>'. |
| // Try changing the type of the left hand side, or casting the right hand side to 'dart.core::Iterable<dart.core::Map<dart.core::int, dart.core::int>>'. |
| // yield* /*error:YIELD_OF_INVALID_TYPE*/ /*@typeArgs=dynamic, dynamic*/ {}; |
| // ^ |
| |
| library test; |
| import self as self; |
| import "dart:core" as core; |
| import "dart:async" as asy; |
| |
| abstract class MyStream<T extends core::Object = dynamic> extends asy::Stream<self::MyStream::T> { |
| static factory •<T extends core::Object = dynamic>() → self::MyStream<self::MyStream::•::T> |
| return null; |
| } |
| static method foo() → asy::Stream<core::List<core::int>> async* { |
| yield<core::int>[]; |
| yield let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:16:67: Error: A value of type 'test::MyStream<dynamic>' can't be assigned to a variable of type 'dart.core::List<dart.core::int>'. |
| Try changing the type of the left hand side, or casting the right hand side to 'dart.core::List<dart.core::int>'. |
| yield /*error:YIELD_OF_INVALID_TYPE*/ new /*@typeArgs=dynamic*/ MyStream(); |
| ^" in self::MyStream::•<dynamic>() as{TypeError} core::List<core::int>; |
| yield* let final<BottomType> #t2 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:17:64: Error: A value of type 'dart.core::List<dynamic>' can't be assigned to a variable of type 'dart.async::Stream<dart.core::List<dart.core::int>>'. |
| Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Stream<dart.core::List<dart.core::int>>'. |
| yield* /*error:YIELD_OF_INVALID_TYPE*/ /*@typeArgs=dynamic*/ []; |
| ^" in <dynamic>[] as{TypeError} asy::Stream<core::List<core::int>>; |
| yield* self::MyStream::•<core::List<core::int>>(); |
| } |
| static method bar() → core::Iterable<core::Map<core::int, core::int>> sync* { |
| yield<core::int, core::int>{}; |
| yield let final<BottomType> #t3 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:23:67: Error: A value of type 'dart.core::List<dynamic>' can't be assigned to a variable of type 'dart.core::Map<dart.core::int, dart.core::int>'. |
| Try changing the type of the left hand side, or casting the right hand side to 'dart.core::Map<dart.core::int, dart.core::int>'. |
| yield /*error:YIELD_OF_INVALID_TYPE*/ new /*@typeArgs=dynamic*/ List(); |
| ^" in core::List::•<dynamic>() as{TypeError} core::Map<core::int, core::int>; |
| yield* let final<BottomType> #t4 = invalid-expression "pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart:24:73: Error: A value of type 'dart.core::Map<dynamic, dynamic>' can't be assigned to a variable of type 'dart.core::Iterable<dart.core::Map<dart.core::int, dart.core::int>>'. |
| Try changing the type of the left hand side, or casting the right hand side to 'dart.core::Iterable<dart.core::Map<dart.core::int, dart.core::int>>'. |
| yield* /*error:YIELD_OF_INVALID_TYPE*/ /*@typeArgs=dynamic, dynamic*/ {}; |
| ^" in <dynamic, dynamic>{} as{TypeError} core::Iterable<core::Map<core::int, core::int>>; |
| yield* core::List::•<core::Map<core::int, core::int>>(); |
| } |
| static method main() → dynamic {} |