blob: 58f8c438688197ffc41027865d5c1eceea5c5889 [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.call();
core::Iterable<core::int*>* h = f.call() as{TypeError} core::Iterable<core::int*>*;
}
static method main() dynamic {}