-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Labels
bad-testReport tests in need of updates. When closed, the tests should be considered goodReport tests in need of updates. When closed, the tests should be considered goodtype-questionA question about expected behavior or functionalityA question about expected behavior or functionality
Description
FAILED: dart2analyzer-none release_arm64 co19/LanguageFeatures/Patterns/pattern_assignment_A07_t01
Expected: Pass
Actual: MissingCompileTimeError
--- Command "dart2analyzer" (took 06.000205s):
DART_CONFIGURATION=ReleaseARM64 sdk/bin/dart --packages=.dart_tool/package_config.json pkg/analyzer_cli/bin/analyzer.dart --use-analysis-driver-memory-byte-store --dart-sdk=/Users/scheglov/Source/Dart/sdk.git/sdk/sdk -Dtest_runner.configuration=custom-configuration-1 --enable-experiment=patterns,records --ignore-unrecognized-flags --packages=/Users/scheglov/Source/Dart/sdk.git/sdk/.dart_tool/package_config.json --format=json /Users/scheglov/Source/Dart/sdk.git/sdk/tests/co19/src/LanguageFeatures/Patterns/pattern_assignment_A07_t01.dart
static error failures:
- Missing expected unspecified error at line 46, column 4, length 1.
- Unexpected error at line 33, column 22, length 2: COMPILE_TIME_ERROR.INVALID_ASSIGNMENT
--- Re-run this test:
python3 tools/test.py -m release -c dart2analyzer -a arm64 co19/LanguageFeatures/Patterns/pattern_assignment_A07_t01
I think code
void f(num a) {
(a as int) = '';
}works as
void f(num a) {
a = '' as int;
}It will crash at runtime, of course, but statically it is fine.
Metadata
Metadata
Assignees
Labels
bad-testReport tests in need of updates. When closed, the tests should be considered goodReport tests in need of updates. When closed, the tests should be considered goodtype-questionA question about expected behavior or functionalityA question about expected behavior or functionality