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