blob: 9b6c3be4ad4bedb1d2551c4ea44aa9df85f883d0 [file] [log] [blame]
library test;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/generic_methods_inference_error.dart:13:11: Error: A value of type 'double' can't be assigned to a variable of type 'String'.
// Try changing the type of the left hand side, or casting the right hand side to 'String'.
// 1.0);
// ^
//
import self as self;
import "dart:core" as core;
static method f() void {
core::List<core::String> y;
core::Iterable<core::String> x = y.{core::Iterable::map}<core::String>((core::String z) core::String => let final<BottomType> #t1 = invalid-expression "pkg/front_end/testcases/inference/generic_methods_inference_error.dart:13:11: Error: A value of type 'double' can't be assigned to a variable of type 'String'.
Try changing the type of the left hand side, or casting the right hand side to 'String'.
1.0);
^" in 1.0 as{TypeError} core::String);
}
static method main() → dynamic {}