Denis.Zharkov
33dcbaac16
K2: Change resolution rules of when/if expressions with expected type
...
When expected type is known, use it as expected type for branch bodies.
While it indeed becomes different from the usual select call resolution,
where expected type is applied only after completion starts,
it helps to support, e.g. callable references resolution just as powerful
as it was in K1.
Also, in some cases where diagnostics have been changed, they become
a bit more helpful since they are reported closer
to the problematic places
cannotCastToFunction.kt test has been removed because it relied
on the case erroneously supported by the hack removed from
the FirCallResolver in this commit.
^KT-45989 Fixed
^KT-55936 Fixed
^KT-56445 Fixed
^KT-54709 Related
^KT-55931 Related
2023-02-15 08:13:46 +00:00
..
2023-02-15 08:13:46 +00:00
2022-11-29 14:47:59 +00:00
2023-02-15 08:13:44 +00:00
2022-12-09 15:00:40 +00:00
2023-01-13 21:32:51 +00:00
2023-02-15 08:13:45 +00:00
2023-01-31 08:39:43 +00:00
2021-11-10 22:00:01 +03:00
2022-02-23 14:21:59 +03:00
2022-02-23 14:21:59 +03:00
2022-11-15 15:06:58 +00:00
2022-11-15 15:06:58 +00:00
2022-11-15 15:06:58 +00:00
2022-11-15 15:06:58 +00:00
2022-02-07 17:21:59 +03:00
2022-02-07 17:21:59 +03:00
2022-03-11 15:36:05 +03:00
2021-05-25 13:28:26 +03:00
2021-05-25 13:28:27 +03:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2022-07-27 15:29:41 +00:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2021-08-25 21:53:23 +00:00
2021-06-25 18:41:14 +03:00
2022-11-15 15:06:58 +00:00
2022-11-15 15:06:58 +00:00
2021-03-29 16:12:29 +03:00
2022-03-23 21:13:33 +00:00
2021-05-25 13:28:26 +03:00
2021-05-25 13:28:27 +03:00
2022-07-22 16:03:52 +00:00
2021-05-25 13:28:26 +03:00
2021-05-25 13:28:27 +03:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2021-03-26 15:19:10 +03:00
2021-05-25 13:28:26 +03:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2021-06-07 15:25:47 +03:00
2021-05-25 13:28:27 +03:00
2021-06-07 15:25:47 +03:00
2021-05-25 13:28:27 +03:00
2022-07-22 16:03:52 +00:00
2021-05-25 13:28:26 +03:00
2021-05-25 13:28:26 +03:00
2021-10-26 19:37:57 +03:00
2021-10-26 19:37:57 +03:00
2021-10-26 19:37:57 +03:00
2021-10-01 22:09:33 +03:00
2021-10-01 22:09:33 +03:00
2021-10-01 22:09:33 +03:00
2022-05-27 13:56:34 +00:00
2022-05-27 13:56:34 +00:00
2022-07-22 16:03:52 +00:00
2021-03-26 15:19:10 +03:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2022-03-23 21:13:33 +00:00
2021-05-13 15:31:18 +03:00
2021-05-13 15:31:18 +03:00
2021-09-27 16:12:27 +03:00
2021-11-12 15:20:45 +03:00
2022-07-27 15:29:41 +00:00
2022-12-09 15:10:03 +00:00
2022-12-09 15:10:03 +00:00
2022-03-23 09:54:46 +00:00
2022-07-22 16:03:52 +00:00
2022-07-22 16:03:52 +00:00
2021-05-25 13:28:26 +03:00
2021-05-25 13:28:26 +03:00
2022-04-05 15:50:43 +00:00
2021-03-29 16:12:29 +03:00
2021-03-29 16:12:29 +03:00
2021-04-22 13:10:54 +03:00
2022-11-15 15:06:58 +00:00