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

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

Issue 2921443002: Implement type inference for PropertyGet. (Closed)
Patch Set: Created 3 years, 7 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/generic_methods_nested_generic_instantiation.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/generic_methods_nested_generic_instantiation.dart.strong.expect b/pkg/front_end/testcases/inference/generic_methods_nested_generic_instantiation.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..84de19f9c9cb8a36b2ac002fd368fed0842a578c
--- /dev/null
+++ b/pkg/front_end/testcases/inference/generic_methods_nested_generic_instantiation.dart.strong.expect
@@ -0,0 +1,23 @@
+library test;
+import self as self;
+import "dart:core" as core;
+import "dart:math" as math;
+
+class Trace extends core::Object {
+ field core::List<self::Frame> frames = <self::Frame>[];
+ constructor •() → void
+ : super core::Object::•()
+ ;
+}
+class Frame extends core::Object {
+ field core::String location = "";
+ constructor •() → void
+ : super core::Object::•()
+ ;
+}
+static method main() → dynamic {
+ core::List<self::Trace> traces = <self::Trace>[];
+ core::int longest = traces.{core::Iterable::map}<core::int>((self::Trace trace) → core::int {
+ return trace.{self::Trace::frames}.{core::Iterable::map}<core::int>((self::Frame frame) → core::int => frame.{self::Frame::location}.{core::String::length}).{core::Iterable::fold}<core::int>(0, math::max);
+ }).{core::Iterable::fold}<core::int>(0, math::max);
+}

Powered by Google App Engine
This is Rietveld 408576698