Files
sdk/pkg/front_end/testcases/constructor_cycle.dart
T
Aske Simon Christensen bd9aa5139a Error on cyclic constructor redirect.
Fixes https://github.com/dart-lang/sdk/issues/30856

Change-Id: Ib0cb851904fdcb12fff11bae92fe177739fe793f
Reviewed-on: https://dart-review.googlesource.com/60429
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2018-06-28 10:37:23 +00:00

13 lines
328 B
Dart

// Copyright (c) 2018, 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.
class A {
A.foo() : this.bar();
A.bar() : this.foo();
A.baz() : this.foo();
A() : this();
}
main() {}