Closed scheglov closed 4 years ago
The type double does not have primitive == operator.
double
==
--- Command "dart2analyzer" (took 49ms): 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_A30_t01.dart exit code: 1 stderr: ERROR|COMPILE_TIME_ERROR|CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS|/b/s/w/ir/cache/builder/sdk/tests/co19/src/LanguageFeatures/nnbd/static_errors_A30_t01.dart|34|10|4|The switch case expression type 'double' can't override the == operator. --- Re-run this test: python tools/test.py -n analyzer-asserts-strong-linux co19/LanguageFeatures/nnbd/static_errors_A30_t01
Fixed by af2f1951f4eb4cf34b2e6a18066225d9b522e5e3
The type
double
does not have primitive==
operator.