blob: dcf91366da87099c6edbb229a7b1d6e85a241aeb [file] [log] [blame]
library test;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/generic_methods_inference_error.dart:11:44: Error: A value of type 'double' can't be returned from a function with return type 'String'.
// /*@returnType=String*/ (String z) => 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:11:44: Error: A value of type 'double' can't be returned from a function with return type 'String'.
/*@returnType=String*/ (String z) => 1.0);
^" in 1.0 as{TypeError} core::String){((core::String) core::String) core::Iterable<core::String>};
}
static method main() dynamic {}