-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
FAILED: dart2analyzer-none release_x64 co19/LanguageFeatures/Super-parameters/type_inference_A05_t03
Expected: Pass
Actual: CompileTimeError
--- Command "dart2analyzer" (took 41ms):
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/type_inference_A05_t03.dart
unexpected analysis errors in type_inference_A05_t03.dart:
- Line 31, column 25: COMPILE_TIME_ERROR.SUPER_FORMAL_PARAMETER_TYPE_IS_NOT_SUBTYPE_OF_ASSOCIATED
The type 'num' of this parameter is not a subtype of the type 'int' of the associated super-constructor parameter.
- Line 31, column 33: COMPILE_TIME_ERROR.MISSING_DEFAULT_VALUE_FOR_PARAMETER
The parameter 'x' can't have a value of 'null' because of its type, but the implicit default value is 'null'.
- Line 31, column 46: COMPILE_TIME_ERROR.SUPER_FORMAL_PARAMETER_TYPE_IS_NOT_SUBTYPE_OF_ASSOCIATED
The type 'num' of this parameter is not a subtype of the type 'int' of the associated super-constructor parameter.
unexpected analysis errors in ../../Utils/expect_common.dart:
- Line 291, column 11: TODO.TODO
TODO check that key sets are equivalent. Following method does not work:
--- Re-run this test:
python3 tools/test.py -m release -c dart2analyzer co19/LanguageFeatures/Super-parameters/type_inference_A05_t03
Metadata
Metadata
Assignees
Labels
No labels