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

Unified Diff: tests/compiler/dart2js_extra/regress/4639_test.dart

Issue 10879007: Fix issue 4639 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « lib/compiler/implementation/ssa/nodes.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/regress/4639_test.dart
diff --git a/tests/language/compile_time_constant9_test.dart b/tests/compiler/dart2js_extra/regress/4639_test.dart
similarity index 60%
copy from tests/language/compile_time_constant9_test.dart
copy to tests/compiler/dart2js_extra/regress/4639_test.dart
index a149c43f11c1b94efb802fbad0ac84b423695504..cc6c5beac099ad27e607e7cbbe53676c11580d99 100644
--- a/tests/language/compile_time_constant9_test.dart
+++ b/tests/compiler/dart2js_extra/regress/4639_test.dart
@@ -2,15 +2,16 @@
// 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.
-class B {
- const B();
+class A {
+ bool contains(x, y) => true;
}
-class A {
- var x = const B();
- A();
+class B {
+ A makeA() => new A();
+ bool test() => makeA().contains(1, 2);
}
main() {
- Expect.isTrue(new A().x === new A().x);
+ Expect.isTrue(new B().test());
+ Expect.isTrue("x".contains("x"));
}
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698