blob: 4ce7c8da788b01e18cb4e59801047e70dd1cc35c [file] [log] [blame]
library test /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/generic_methods_inference_error.dart:12:11: Error: A value of type 'double' can't be returned from a function with return type 'String'.
// 1.0);
// ^
//
import self as self;
import "dart:core" as core;
static method f(core::List<core::String> y) void {
core::Iterable<core::String> x = y.{core::Iterable::map}<core::String>((core::String z) core::String => invalid-expression "pkg/front_end/testcases/inference/generic_methods_inference_error.dart:12:11: Error: A value of type 'double' can't be returned from a function with return type 'String'.
1.0);
^" in 1.0 as{TypeError,ForNonNullableByDefault} core::String){((core::String) core::String) core::Iterable<core::String>};
}
static method main() dynamic {}