| 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"));
|
| }
|
|
|