Files
sdk/pkg/front_end/testcases/constructor_cycle.dart.strong.expect
T
Jens Johansen dab228e55f Save problems in ast - fasta changes
Change-Id: Id38f5e7495c245e5a7b161b55c58b8826c146a80
Reviewed-on: https://dart-review.googlesource.com/c/90000
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Peter von der Ahé <ahe@google.com>
2019-01-17 10:46:13 +00:00

33 lines
887 B
Plaintext

library;
//
// Problems in library:
//
// pkg/front_end/testcases/constructor_cycle.dart:7:18: Error: Redirecting constructers can't be cyclic.
// Try to have all constructors eventually redirect to a non-redirecting constructor.
// A.bar() : this.foo();
// ^^^
//
// pkg/front_end/testcases/constructor_cycle.dart:9:9: Error: Redirecting constructers can't be cyclic.
// Try to have all constructors eventually redirect to a non-redirecting constructor.
// A() : this();
// ^^^^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
constructor foo() → self::A
: this self::A::bar()
;
constructor bar() → self::A
: this self::A::foo()
;
constructor baz() → self::A
: this self::A::foo()
;
constructor •() → self::A
: this self::A::•()
;
}
static method main() → dynamic {}