Paul Berry
19c7f85bfe
Test an odd interaction of implicit .call tearoffs with promotion.
...
Currently, we decide whether to insert an implicit `.call` tearoff on
an expression based on the type the expression is being assigned to,
whereas the spec says that we decide it based on the context type.
In most cases, these are the same type, however when assigning to a
promoted variable, the context type is the promoted type, whereas the
"type being assigned to" is the unpromoted type.
Previously, we had no language tests of this behavior; it just emerged
naturally from the way it was implemented in the CFE. This test locks
down the behavior so that we won't change it by mistake.
We may, at some future time, decide to change it on purpose though.
Discussion about this behavior is ongoing on the langauge team.
Change-Id: I82f54c8875fd3b5829c5f75a676fdaf5eea64703
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/233650
Reviewed-by: Lasse Nielsen <lrn@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2022-02-22 11:49:41 +00:00
..
2021-07-26 13:22:31 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2022-02-18 12:09:42 +00:00
2021-04-26 17:58:57 +00:00
2021-11-05 16:24:27 +00:00
2021-04-26 17:58:57 +00:00
2022-01-24 01:25:38 +00:00
2022-02-22 11:49:41 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-07-19 21:49:49 +00:00
2021-08-25 09:51:54 +00:00
2022-02-10 22:13:14 +00:00
2021-04-26 17:58:57 +00:00
2022-01-28 15:07:02 +00:00
2022-01-06 17:06:47 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-11-24 13:03:52 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-09-22 14:20:16 +00:00
2021-04-26 17:58:57 +00:00
2021-06-30 07:44:52 +00:00
2021-08-25 09:51:54 +00:00
2021-08-25 09:51:54 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-09-15 06:22:23 +00:00
2021-05-19 15:45:21 +00:00
2021-09-21 19:16:37 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-06-02 07:47:46 +00:00
2021-10-17 06:22:30 +00:00
2021-06-18 10:20:32 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-09-15 06:22:23 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-09-15 06:22:23 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-09-15 06:22:23 +00:00
2021-04-26 17:58:57 +00:00
2021-08-30 11:56:30 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2022-01-14 23:33:11 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-07-16 22:58:02 +00:00
2021-10-05 11:58:04 +00:00
2021-08-25 09:51:54 +00:00
2021-11-12 19:21:52 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-04-26 17:58:57 +00:00
2021-09-15 06:22:23 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-08-25 09:51:54 +00:00
2021-10-19 16:07:52 +00:00
2021-07-26 13:22:31 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-08-25 09:51:54 +00:00
2021-04-26 17:58:57 +00:00
2021-10-01 00:56:14 +00:00
2021-04-26 17:58:57 +00:00
2021-11-04 18:57:21 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-05-19 08:05:05 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-08-25 09:51:54 +00:00
2021-04-26 17:58:57 +00:00
2021-12-02 22:12:57 +00:00
2021-04-26 17:58:57 +00:00
2022-02-10 22:13:14 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-05-19 08:05:05 +00:00
2022-02-10 22:13:14 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-08-25 09:51:54 +00:00
2021-04-26 17:58:57 +00:00
2021-07-26 13:22:31 +00:00
2021-11-08 18:53:42 +00:00
2021-11-04 18:57:21 +00:00
2021-09-15 06:22:23 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2020-02-01 00:17:42 +00:00
2022-02-15 16:37:50 +00:00
2021-09-28 17:58:42 +00:00
2021-07-02 14:26:46 +00:00
2021-02-04 06:46:13 +00:00
2021-02-04 06:46:13 +00:00
2019-12-11 19:18:00 +00:00
2021-07-16 07:51:58 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-04-26 17:58:57 +00:00
2021-06-22 20:03:13 +00:00
2021-06-02 07:47:46 +00:00