blob: f25837158362698df2df8dac94e01dfdabf52f2d [file] [log] [blame]
// Formatted problems:
//
// pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart:12:45: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
// Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
// return /*error:RETURN_OF_INVALID_TYPE*/ 1;
// ^
library test;
import self as self;
import "dart:core" as core;
static method main() dynamic {
function f() core::String
return null;
() core::String g = f;
g = () core::String {
return let dynamic _ = null in let final dynamic #t1 = let dynamic _ = null in invalid-expression "pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart:12:45: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
return /*error:RETURN_OF_INVALID_TYPE*/ 1;
^" in let final dynamic #t2 = 1 in null;
};
}