dart-lang / co19

A Dart language and library conformance test suite
BSD 3-Clause "New" or "Revised" License
37 stars 28 forks source link

co19/LanguageFeatures/nnbd/static_errors_A08_t13 #562

Closed scheglov closed 4 years ago

scheglov commented 4 years ago

T is not declared.

--- Command "dart2analyzer" (took 81ms):
DART_CONFIGURATION=ReleaseX64NNBD out/ReleaseX64NNBD/dart-sdk/bin/dartanalyzer --enable-experiment=non-nullable --ignore-unrecognized-flags --packages=/b/s/w/ir/cache/builder/sdk/.packages --format=machine --no-hints /b/s/w/ir/cache/builder/sdk/tests/co19/src/LanguageFeatures/nnbd/static_errors_A08_t13.dart

static error failures:
Unexpected static error at line 31, column 12, length 1:
- Had error code STATIC_TYPE_WARNING.NON_TYPE_AS_TYPE_ARGUMENT.

Missing static error at line 32, column 3, length 1:
- Expected unspecified error code.
- Expected unspecified error message.

--- Re-run this test:
python tools/test.py -n analyzer-asserts-strong-linux co19/LanguageFeatures/nnbd/static_errors_A08_t13
sgrekhov commented 4 years ago

Fixed by af2f1951f4eb4cf34b2e6a18066225d9b522e5e3