Chromium Code Reviews| Index: pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.direct.expect |
| diff --git a/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.direct.expect b/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.direct.expect |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5c8ecc1c6459b098c2c4a9dedce8047c210ac79f |
| --- /dev/null |
| +++ b/pkg/front_end/testcases/inference/block_bodied_lambdas_downwards_incompatible_with_upwards_inference.dart.direct.expect |
| @@ -0,0 +1,12 @@ |
| +library test; |
| +import self as self; |
| +import "dart:core" as core; |
| + |
| +static method main() → dynamic { |
| + function f() → core::String |
| + return null; |
| + dynamic g = f; |
| + g = () → dynamic { |
| + return 1; |
| + }; |
| +} |