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

Unified Diff: tests/compiler/dart2js_extra/22895.dart

Issue 1013803006: Abort tracing in type inference in the presence of await. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: added test Created 5 years, 9 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
« no previous file with comments | « tests/compiler/dart2js_extra/22868_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/22895.dart
diff --git a/runtime/observatory/lib/src/debugger/debugger.dart b/tests/compiler/dart2js_extra/22895.dart
similarity index 52%
copy from runtime/observatory/lib/src/debugger/debugger.dart
copy to tests/compiler/dart2js_extra/22895.dart
index 97a6ff5dadc04df3e0939b6574835d4f31f292f4..73f120db967ce2d4bb096032f263c2d82163cb4f 100644
--- a/runtime/observatory/lib/src/debugger/debugger.dart
+++ b/tests/compiler/dart2js_extra/22895.dart
@@ -2,11 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-part of debugger;
+// Regression test for http://dartbug.com/22895/
+// Ensure that the type graph is retained in presence of await.
-// TODO(turnidge): Move more of ObservatoryDebugger to this class.
-abstract class Debugger {
- Isolate get isolate;
- ServiceMap get stack;
- int get currentFrame;
+main() async {
+ var closures = [(x, y) => x + y];
+ print(((await closures)[0])(4, 2));
}
« no previous file with comments | « tests/compiler/dart2js_extra/22868_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698