blob: 09f2bafd4596cde9eb47e840a3879eac3e8fda80 [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
static method test() dynamic {
() →* core::Iterable<core::num*>* f = () core::Iterable<core::num*>* sync* {
yield 1;
yield*<core::num*>[3, 4.0];
};
core::Iterable<core::num*>* g = f(){() →* core::Iterable<core::num*>*};
core::Iterable<core::int*>* h = f(){() →* core::Iterable<core::num*>*} as{TypeError} core::Iterable<core::int*>*;
}
static method main() dynamic {}