Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1739)

Unified Diff: pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.strong.expect

Issue 2965023002: Fix inference test expectations for generic function types. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.strong.expect b/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.strong.expect
index 28cb7761861820d05d89254d4246308c0fdb9075..5adf7ee2e2927a879562ae988bf47dc448e5cc1f 100644
--- a/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.strong.expect
+++ b/pkg/front_end/testcases/inference/downwards_inference_on_generic_function_expressions.dart.strong.expect
@@ -4,57 +4,57 @@ import "dart:core" as core;
static method main() → void {
{
- function f(core::int x) → core::String
+ function f<S extends core::Object>(core::int x) → core::String
return null;
- (core::int) → core::String v = f;
- v = (core::int x) → core::String => null;
- v = (core::int x) → core::String => "hello";
- v = (core::String x) → core::String => "hello";
- v = (core::int x) → core::int => 3;
- v = (core::int x) → core::String {
+ <S extends core::Object>(core::int) → core::String v = f;
+ v = <T extends core::Object>(core::int x) → core::String => null;
+ v = <T extends core::Object>(core::int x) → core::String => "hello";
+ v = <T extends core::Object>(core::String x) → core::String => "hello";
+ v = <T extends core::Object>(core::int x) → core::int => 3;
+ v = <T extends core::Object>(core::int x) → core::String {
return 3;
};
}
{
- function f(core::int x) → core::String
+ function f<S extends core::Object>(core::int x) → core::String
return null;
- (core::int) → core::String v = f;
- v = (core::int x) → core::String => null;
- v = (core::int x) → core::String => "hello";
- v = (core::int x) → core::int => 3;
- v = (core::int x) → core::String {
+ <S extends core::Object>(core::int) → core::String v = f;
+ v = <T extends core::Object>(core::int x) → core::String => null;
+ v = <T extends core::Object>(core::int x) → core::String => "hello";
+ v = <T extends core::Object>(core::int x) → core::int => 3;
+ v = <T extends core::Object>(core::int x) → core::String {
return 3;
};
- v = (core::int x) → core::String {
+ v = <T extends core::Object>(core::int x) → core::String {
return x;
};
}
{
- function f(core::int x) → core::List<core::String>
+ function f<S extends core::Object>(core::int x) → core::List<core::String>
return null;
- (core::int) → core::List<core::String> v = f;
- v = (core::int x) → core::List<core::String> => null;
- v = (core::int x) → core::List<core::String> => <core::String>["hello"];
- v = (core::String x) → core::List<core::String> => <core::String>["hello"];
- v = (core::int x) → core::List<core::String> => <core::String>[3];
- v = (core::int x) → core::List<core::String> {
+ <S extends core::Object>(core::int) → core::List<core::String> v = f;
+ v = <T extends core::Object>(core::int x) → core::List<core::String> => null;
+ v = <T extends core::Object>(core::int x) → core::List<core::String> => <core::String>["hello"];
+ v = <T extends core::Object>(core::String x) → core::List<core::String> => <core::String>["hello"];
+ v = <T extends core::Object>(core::int x) → core::List<core::String> => <core::String>[3];
+ v = <T extends core::Object>(core::int x) → core::List<core::String> {
return <core::String>[3];
};
}
{
- function int2int(core::int x) → core::int
+ function int2int<S extends core::Object>(core::int x) → core::int
return null;
- function int2String(core::int x) → core::String
+ function int2String<T extends core::Object>(core::int x) → core::String
return null;
- function string2String(core::String x) → core::String
+ function string2String<T extends core::Object>(core::String x) → core::String
return null;
- (core::int) → core::int x = int2int;
- x = (core::int x) → core::int => x;
- x = (core::int x) → core::int => x.{core::num::+}(1);
- (core::int) → core::String y = int2String;
- y = (core::int x) → core::int => x;
- y = (core::int x) → core::String => x.substring(3);
- (core::String) → core::String z = string2String;
- z = (core::String x) → core::String => x.{core::String::substring}(3);
+ <S extends core::Object>(core::int) → core::int x = int2int;
+ x = <T extends core::Object>(core::int x) → core::int => x;
+ x = <T extends core::Object>(core::int x) → core::int => x.{core::num::+}(1);
+ <T extends core::Object>(core::int) → core::String y = int2String;
+ y = <T extends core::Object>(core::int x) → core::int => x;
+ y = <T extends core::Object>(core::int x) → core::String => x.substring(3);
+ <T extends core::Object>(core::String) → core::String z = string2String;
+ z = <T extends core::Object>(core::String x) → core::String => x.{core::String::substring}(3);
}
}

Powered by Google App Engine
This is Rietveld 408576698