Index: pkg/front_end/testcases/inference/generic_methods_nested_generic_instantiation.dart.direct.expect |
diff --git a/pkg/front_end/testcases/inference/generic_methods_nested_generic_instantiation.dart.direct.expect b/pkg/front_end/testcases/inference/generic_methods_nested_generic_instantiation.dart.direct.expect |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7ba892178b9ec749bb9b2ba6eebba9364c9310ee |
--- /dev/null |
+++ b/pkg/front_end/testcases/inference/generic_methods_nested_generic_instantiation.dart.direct.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 = <dynamic>[]; |
+ default constructor •() → void |
+ : super core::Object::•() |
+ ; |
+} |
+class Frame extends core::Object { |
+ field core::String location = ""; |
+ default constructor •() → void |
+ : super core::Object::•() |
+ ; |
+} |
+static method main() → dynamic { |
+ core::List<self::Trace> traces = <dynamic>[]; |
+ dynamic longest = traces.map((dynamic trace) → dynamic { |
+ return trace.frames.map((dynamic frame) → dynamic => frame.location.length).fold(0, math::max); |
+ }).fold(0, math::max); |
+} |