dart-sdk/tests
Nicholas Shahan 8e2539d24c [ddc] Fix equality tests for Functions
Marks `Function` as an extensible type so that DDC knows to use the
symbolized version of the equals operator.

The `Function` class at runtime already has its equals method attached
as the "symbolized" version. Consider `a == b`. When DDC knows `a` is
statically a raw `Function` and non-nullable (more likely with sound
null safety) the generated code should call the symbolized equals
member ex: `a[$_equals](b)`. Without this change the generated code
would be `a.equals(b)` and fail at runtime because the method does
not exist.

With this change co19_2/LibTest/core/Function/operator_eq_A01_t01
starts passing.

Change-Id: I80dd2abbbb04f1b7ab7e21dd14561a45f6e81459
Fixes: https://github.com/dart-lang/sdk/issues/45601
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194204
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-04-15 22:02:07 +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 [ddc] Fix equality tests for Functions 2021-04-15 22:02:07 +00:00
language_2 [ddc] Fix equality tests for Functions 2021-04-15 22:02:07 +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 [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +00:00
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.