| Index: tests/compiler/dart2js_extra/regress/4562_test.dart
|
| diff --git a/tests/language/bind_test.dart b/tests/compiler/dart2js_extra/regress/4562_test.dart
|
| similarity index 59%
|
| copy from tests/language/bind_test.dart
|
| copy to tests/compiler/dart2js_extra/regress/4562_test.dart
|
| index e73f68e5514cb26527208fa3b2d1df8f3a145fe4..13a30edc8c3407cf7ed64d28819af3d7d6149172 100644
|
| --- a/tests/language/bind_test.dart
|
| +++ b/tests/compiler/dart2js_extra/regress/4562_test.dart
|
| @@ -2,13 +2,15 @@
|
| // 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 Bound {
|
| - run() {
|
| - return 42;
|
| - }
|
| +void main() {
|
| + var foo = new Foo();
|
| + var bar = new Bar(); /// 01: compile-time error
|
| }
|
|
|
| -void main() {
|
| - var runner = new Bound().run;
|
| - Expect.equals(42, runner());
|
| +class Foo {
|
| + factory Foo() => null;
|
| +}
|
| +
|
| +class Bar extends Foo {
|
| + Bar(); /// 01: continued
|
| }
|
|
|