Index: pkg/front_end/testcases/inference/downward_inference_miscellaneous.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/downward_inference_miscellaneous.dart.direct.expect b/pkg/front_end/testcases/inference/downward_inference_miscellaneous.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3fbf5b64f094f63f95c50d549413588bff377092 |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/downward_inference_miscellaneous.dart.direct.expect |
@@ -0,0 +1,25 @@ |
+library test; |
+import self as self; |
+import "dart:core" as core; |
+ |
+typedef Function2<S extends core::Object, T extends core::Object> = (S) → T; |
+class A<T extends core::Object> extends core::Object { |
+ field (self::A::T) → self::A::T x; |
+ constructor •((self::A::T) → self::A::T x) → void |
+ : self::A::x = x, super core::Object::•() |
+ ; |
+} |
+static method main() → void { |
+ { |
+ dynamic x = "hello"; |
+ dynamic y = 3; |
+ function f(core::List<core::Map<core::int, core::String>> l) → void {} |
+ ; |
+ f.call(<dynamic>[<dynamic, dynamic>{y: x}]); |
+ } |
+ { |
+ function f(core::int x) → core::int |
+ return 0; |
+ self::A<core::int> a = new self::A::•<dynamic>(f); |
+ } |
+} |