| Index: dart/tests/language/cyclic_class_member_test.dart
|
| diff --git a/dart/tests/language/dynamic2_test.dart b/dart/tests/language/cyclic_class_member_test.dart
|
| similarity index 50%
|
| copy from dart/tests/language/dynamic2_test.dart
|
| copy to dart/tests/language/cyclic_class_member_test.dart
|
| index 82c9074c5caaed8e0bcc213834a22671cb380513..63c9651c90ccc8b3bf1271832fffb91836c68e8f 100644
|
| --- a/dart/tests/language/dynamic2_test.dart
|
| +++ b/dart/tests/language/cyclic_class_member_test.dart
|
| @@ -1,13 +1,15 @@
|
| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| // 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.
|
| -//
|
| -// Test the prohibited use of 'dynamic' in extending and implementing classes.
|
| +
|
| +// Test that class with a cyclic hierarchy doesn't cause a loop in dart2js.
|
|
|
| class A
|
| - extends dynamic /// 00: compile-time error
|
| - implements dynamic /// 01: compile-time error
|
| + extends A /// 01: compile-time error
|
| {
|
| + // When checking that foo isn't overriding an instance method in the
|
| + // superclass, dart2js might loop.
|
| + static foo() {}
|
| }
|
|
|
| main() {
|
|
|