Esteban Küber
37d2ea2fa0
Properly handle async blocks and fns in if exprs without else
...
When encountering a tail expression in the then arm of an `if` expression
without an `else` arm, account for `async fn` and `async` blocks to
suggest `return`ing the value and pointing at the return type of the
`async fn`.
We now also account for AFIT when looking for the return type to point at.
Fix #115405 .
2024-02-12 20:26:34 +00:00
..
2023-10-30 08:46:02 +11:00
2024-01-16 21:15:31 +01:00
2024-02-06 13:12:33 +11:00
2024-02-12 12:47:32 +08:00
2024-02-12 12:47:30 +08:00
2024-02-12 12:47:29 +08:00
2024-02-12 12:47:23 +08:00
2024-02-06 13:12:33 +11:00
2023-11-15 19:41:28 -05:00
2024-02-10 12:24:46 +03:00
2024-02-12 12:47:32 +08:00
2024-02-09 15:34:48 +00:00
2024-02-09 14:41:50 +01:00
2024-02-10 12:26:14 +11:00
2024-02-10 13:12:31 +01:00
2024-02-12 09:48:14 +01:00
2024-02-10 00:58:38 +01:00
2023-11-15 19:41:28 -05:00
2024-02-09 14:41:50 +01:00
2024-02-10 16:12:55 +01:00
2024-02-09 14:41:50 +01:00
2024-02-11 01:37:54 +01:00
2024-02-09 14:41:50 +01:00
2024-02-10 16:12:55 +01:00
2024-02-06 13:12:33 +11:00
2024-02-06 13:12:33 +11:00
2024-02-06 13:12:33 +11:00
2024-02-12 12:47:23 +08:00
2024-02-12 14:51:15 +00:00
2024-02-12 12:47:23 +08:00
2024-02-12 20:26:34 +00:00
2024-02-06 13:12:33 +11:00
2024-02-06 13:12:33 +11:00
2024-02-08 07:44:34 -05:00
2024-02-11 23:19:08 +01:00
2024-02-09 14:41:52 +01:00
2024-02-06 13:12:33 +11:00
2024-02-11 23:19:08 +01:00
2024-02-10 12:26:14 +11:00
2024-02-09 14:41:50 +01:00
2024-02-06 13:12:33 +11:00
2024-02-09 14:41:50 +01:00
2024-02-12 12:47:23 +08:00
2024-02-12 20:26:34 +00:00
2024-02-12 12:47:30 +08:00
2024-02-10 18:15:11 +11:00
2024-02-11 22:13:52 +00:00
2024-02-11 01:37:55 +01:00
2024-02-06 02:22:58 +00:00
2024-02-12 20:26:34 +00:00
2024-02-06 13:12:33 +11:00
2024-02-12 12:47:23 +08:00
2024-02-09 14:41:50 +01:00
2024-02-09 14:41:50 +01:00
2024-02-06 13:12:33 +11:00
2024-02-09 14:41:50 +01:00
2024-02-12 12:47:32 +08:00
2024-02-06 13:12:33 +11:00
2024-02-09 14:41:50 +01:00
2024-02-08 11:49:08 -05:00
2024-02-12 12:47:23 +08:00
2024-02-12 12:47:23 +08:00
2024-02-10 18:15:11 +11:00
2024-02-12 12:47:32 +08:00
2024-02-06 13:12:33 +11:00
2024-02-06 13:12:33 +11:00
2024-02-12 12:47:23 +08:00
2024-02-09 14:41:50 +01:00
2024-02-08 11:49:08 -05:00