mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
0ccb2771a3
Previously, if a type mismatch occurred on a named argument, e.g.: int.fromEnvironment('foo', defaultValue: 'BAD') the error would be reported on the entire NamedExpression (`defaultValue: 'BAD'` in this example). Now, the error is just reported on the expression (`'BAD'` in this example). This makes the analyzer behavior more self-consistent (since now assignability errors are now consistently reported at the site of the expression that can't be assigned). It also makes the analyzer behavior more consistent with the CFE. This will make it possible, in a follow-up CL, to eliminate a lot of the inconsistencies between analyzer and CFE in the "why not promoted" ID tests. Change-Id: I17db256959d730a22a5766f65d5c0736b627f244 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195489 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Paul Berry <paulberry@google.com> |
||
---|---|---|
.. | ||
co19 | ||
co19_2 | ||
corelib | ||
corelib_2 | ||
dartdevc | ||
dartdevc_2 | ||
ffi | ||
ffi_2 | ||
language | ||
language_2 | ||
lib | ||
lib_2 | ||
modular | ||
standalone | ||
standalone_2 | ||
web | ||
web_2 | ||
legacy_status_dart2js.csv | ||
README.md |
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.