| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // Redirection constructors must not be cyclic. | 4 // Redirection constructors must not be cyclic. |
| 5 | 5 |
| 6 class A { | 6 class A { |
| 7 var x; | 7 var x; |
| 8 A(x) : this(0); | 8 A(x) : this(0); |
| 9 } | 9 } |
| 10 | 10 |
| 11 class ConstructorRedirect2NegativeTest { | 11 class ConstructorRedirect2NegativeTest { |
| 12 static testMain() { | 12 static testMain() { |
| 13 new A(10); |
| 13 } | 14 } |
| 14 } | 15 } |
| 15 | 16 |
| 16 main() { | 17 main() { |
| 17 ConstructorRedirect2NegativeTest.testMain(); | 18 ConstructorRedirect2NegativeTest.testMain(); |
| 18 } | 19 } |
| OLD | NEW |