blob: e95f5293b94bdadbfd38a9b331efa31af9819b54 [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
import "dart:async" as asy;
abstract class MyStream<T extends core::Object> extends asy::Stream<self::MyStream::T> {
static factory •<T extends core::Object>() self::MyStream<self::MyStream::•::T>
return null;
}
static method foo() asy::Stream<core::List<core::int>> async* {
yield<core::int>[];
yield self::MyStream::•<dynamic>() as{TypeError} core::List<core::int>;
yield*<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 core::List::_internal<dynamic>() as{TypeError} core::Map<core::int, core::int>;
yield*<dynamic, dynamic>{} as{TypeError} core::Iterable<core::Map<core::int, core::int>>;
yield* core::List::_internal<core::Map<core::int, core::int>>();
}
static method main() dynamic {}