| Index: tests/language/issue11087_vm_test.dart
|
| diff --git a/tests/language/return_this_type_test.dart b/tests/language/issue11087_vm_test.dart
|
| similarity index 53%
|
| copy from tests/language/return_this_type_test.dart
|
| copy to tests/language/issue11087_vm_test.dart
|
| index d7ad7396b75adadc6c933958ce131bae7354ddd5..3dd71e1b3207df77977c59c178993ac6c938244a 100644
|
| --- a/tests/language/return_this_type_test.dart
|
| +++ b/tests/language/issue11087_vm_test.dart
|
| @@ -2,17 +2,20 @@
|
| // 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.
|
|
|
| -// Make sure the engine does not infer the wrong type for [:A.foo:].
|
| -
|
| -import "package:expect/expect.dart";
|
| +// Regression test for VM's IfConverted pass not keeping graph structure and
|
| +// use lists in sync.
|
|
|
| class A {
|
| - foo() => this;
|
| + int x;
|
| }
|
|
|
| -class B extends A {
|
| +f() {
|
| + var a = new A();
|
| + a.x = (true ? 2 : 4);
|
| + return a.x;
|
| }
|
|
|
| main() {
|
| - Expect.isTrue(new B().foo() is B);
|
| + for (var i = 0; i < 10000; i++) f();
|
| }
|
| +
|
|
|