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

Unified Diff: tests/compiler/dart2js_extra/22868_test.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 | « pkg/compiler/lib/src/inferrer/type_graph_nodes.dart ('k') | tests/compiler/dart2js_extra/22895.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/22868_test.dart
diff --git a/tests/language/constructor_name_clash_lib.dart b/tests/compiler/dart2js_extra/22868_test.dart
similarity index 52%
copy from tests/language/constructor_name_clash_lib.dart
copy to tests/compiler/dart2js_extra/22868_test.dart
index 46ea6c0b3c621fcd1827750c10de66980b5b3057..185e0f6d31fd5b79f85dd0f5ef9f1f3695d89283 100644
--- a/tests/language/constructor_name_clash_lib.dart
+++ b/tests/compiler/dart2js_extra/22868_test.dart
@@ -2,13 +2,11 @@
// 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.
-library lib;
+// Regression test for http://dartbug.com/22868/
+// Ensure that the closure tracer properly handles await.
-var global = 0;
-
-class A {
- A() {
- global += 10;
- try {} catch(e) {} // no inline
- }
+main() async {
+ var closures = [(x, y) => x + y];
+ print(((await closures)[0])(4, 2));
}
+
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_nodes.dart ('k') | tests/compiler/dart2js_extra/22895.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698