dart-sdk/tests
Paul Berry 0ccb2771a3 Analyzer: change extent for assignability errors with named arguments
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>
2021-04-15 21:38:37 +00:00
..
co19 [co19] Fix update script to prevent incorrect issue links again 2021-04-13 13:42:12 +00:00
co19_2 [co19] Skip in status files removed or replaced where it is possible 2021-04-12 13:26:49 +00:00
corelib Rereland "[vm/ffi] Disallow Pointers and structs in finalizers and expandos" 2021-04-14 12:07:18 +00:00
corelib_2 Rereland "[vm/ffi] Disallow Pointers and structs in finalizers and expandos" 2021-04-14 12:07:18 +00:00
dartdevc [ddc] Add library URIs to cast failure messages 2021-04-09 22:24:43 +00:00
dartdevc_2 [ddc] Add library URIs to cast failure messages 2021-04-09 22:24:43 +00:00
ffi [vm/ffi] Support Unions 2021-04-15 10:16:27 +00:00
ffi_2 [vm/ffi] Support Unions 2021-04-15 10:16:27 +00:00
language Analyzer: change extent for assignability errors with named arguments 2021-04-15 21:38:37 +00:00
language_2 Analyzer: change extent for assignability errors with named arguments 2021-04-15 21:38:37 +00:00
lib [dart:html] Fix sanitization for HTML templates 2021-04-13 23:29:08 +00:00
lib_2 [dart:html] Fix sanitization for HTML templates 2021-04-13 23:29:08 +00:00
modular [ddc] Fix private class exposed by typedef 2021-04-05 18:54:56 +00:00
standalone Revert "Revert commits part of #40548 which still has some design debates and breaks valid local network http traffic" 2021-04-15 15:29:28 +00:00
standalone_2 Revert "Revert commits part of #40548 which still has some design debates and breaks valid local network http traffic" 2021-04-15 15:29:28 +00:00
web Reland "[dart2js] Add support for bundling fragments." 2021-04-08 17:46:50 +00:00
web_2 [dart2js] Fix variable allocator live-range bug 2021-03-23 15:38:36 +00:00
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.