blob: 9b35c9305676845717f6d56c230a0dfd0b142e4b [file] [log] [blame]
library test;
import self as self;
import "dart:core" as core;
static method f() dynamic {
core::List<core::int> o;
o.{core::Iterable::forEach}((core::int i) void {
return let<BottomType> _ = null in let final dynamic #t1 = let<BottomType> _ = null in invalid-expression "pkg/front_end/testcases/inference/block_bodied_lambdas_void_context.dart:12:33: Error: Can't return a value from a void function.
return i /*@target=num::+*/ + 1;
^" in let final core::int #t2 = i.{core::num::+}(1) in null;
});
}
static method main() → dynamic {}