-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.feature-augmentationsImplementation of the augmentations featureImplementation of the augmentations featuretype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Augmentations spec:
It is a compile-time error if:
...
- The introductory constructor has a super initializer (super constructor invocation at the end of the initializer list) and the augmenting constructor does too. An augmentation can replace the implicit default super() with a concrete super-invocation, but cannot replace a declared super constructor.
But there's no such error in the analyzer.
class A {
int x;
A(this.x);
}
class C extends A {
C() : super(0); // No expected error here
//^
// [analyzer] unspecified
// [cfe] unspecified
}
augment class C {
augment C() : super(1);
}Appropriate co19 test https://github.com/dart-lang/co19/blob/master/LanguageFeatures/Augmentation-libraries/augmenting_constructors_A06_t02.dart.
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.feature-augmentationsImplementation of the augmentations featureImplementation of the augmentations featuretype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug