Files
sdk/pkg/front_end/testcases/constructor_initializer_invalid.dart.outline.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

39 lines
1.0 KiB
Plaintext

library;
//
// Problems in library:
//
// pkg/front_end/testcases/constructor_initializer_invalid.dart:5:24: Error: Expected an initializer.
// class C1 { int f; C1() : ; }
// ^
//
// pkg/front_end/testcases/constructor_initializer_invalid.dart:6:26: Error: Expected an assignment after the field name.
// To initialize a field, use the syntax 'name = value'.
// class C2 { int f; C2() : f; }
// ^
//
// pkg/front_end/testcases/constructor_initializer_invalid.dart:7:26: Error: Expected an assignment after the field name.
// To initialize a field, use the syntax 'name = value'.
// class C3 { int f; C3() : f++; }
// ^
//
import self as self;
import "dart:core" as core;
class C1 extends core::Object {
field core::int f;
constructor •() → self::C1
;
}
class C2 extends core::Object {
field core::int f;
constructor •() → self::C2
;
}
class C3 extends core::Object {
field core::int f;
constructor •() → self::C3
;
}
static method main() → dynamic
;