blob: 7be08dc075b5e4c274845208464b1f848e47d35b [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
class Foo extends core::Object {
field core::int bar = 42;
default constructor •() void
: super core::Object::•()
;
}
class Bar<T extends core::Iterable<core::String>> extends core::Object {
default constructor •() void
: super core::Object::•()
;
method foo(self::Bar::T t) void {
for (core::String i in t) {
core::int x = i;
}
}
}
class Baz<T extends core::Object, E extends core::Iterable<self::Baz::T>, S extends self::Baz::E> extends core::Object {
default constructor •() void
: super core::Object::•()
;
method foo(self::Baz::S t) void {
for (self::Baz::T i in t) {
core::int x = i;
self::Baz::T y = i;
}
}
}
static method test() dynamic {
core::List<self::Foo> list = <self::Foo>[];
for (self::Foo x in list) {
core::String y = x;
}
for (dynamic x in list) {
core::String y = x;
}
for (core::String x in list) {
core::String y = x;
}
dynamic z;
for (final dynamic #t1 in list) {
z = #t1;
core::String y = z;
}
core::Iterable<dynamic> iter = list;
for (self::Foo x in iter) {
self::Foo y = x;
}
dynamic iter2 = list;
for (self::Foo x in iter2) {
self::Foo y = x;
}
core::Map<core::String, self::Foo> map = <core::String, self::Foo>{};
for (dynamic x in map) {
core::String y = x;
}
for (core::String x in map.{core::Map::keys}) {
core::String y = x;
}
}
static method main() dynamic {}