-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
class S {
int s1, s2;
S(this.s1, {this.s2 = 0});
}
class C extends S {
int i1;
C(this.i1, super.s1, {super.s2, super.s2});
// ^^^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
}
main() {
C(1, 2, 3);
}The invocation of C(1, 2, 3) specifies 3 as a positional parameter.
Reported:
FAILED: dart2analyzer-none release_x64 co19/LanguageFeatures/Super-parameters/semantics_A04_t12
Expected: Pass
Actual: MissingCompileTimeError
--- Command "dart2analyzer" (took 19ms):
DART_CONFIGURATION=ReleaseX64 sdk/bin/dartanalyzer --enable-experiment=super-parameters --ignore-unrecognized-flags --packages=/Users/scheglov/Source/Dart/sdk.git/sdk/.packages --format=json --no-hints /Users/scheglov/Source/Dart/sdk.git/sdk/tests/co19/src/LanguageFeatures/Super-parameters/semantics_A04_t12.dart
static error failures:
- Unexpected error at line 26, column 11, length 1: COMPILE_TIME_ERROR.EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED
--- Re-run this test:
python3 tools/test.py -m release -c dart2analyzer co19/LanguageFeatures/Super-parameters/semantics_A04_t12
Metadata
Metadata
Assignees
Labels
No labels