Denis.Zharkov
2bafcddf7a
K2: Avoid using Nothing? as inference result in the majority of cases
...
Namely, do not choose `Nothing?` result type when fixing a variable
that has other constraints besides the ones that came from
the relevant type parameter's upper bounds.
See more details in KT-55691.
In K1, the case from specialCallWithMaterializeAndExpectedType.kt
was working (inferred to String?) just because the branches
were analyzed independently with `String?` expected type.
This change became necessary after the previous commit when we united
inference subsystems for if/when branches (see motivation there).
NB: For K1, the behavior is left the same, but the code
was refactored a bit.
^KT-55691 Fixed
^KT-56448 Fixed
2023-02-15 08:13:50 +00:00
..
2023-01-30 09:29:57 +00:00
2023-01-10 15:40:45 +02:00
2022-10-03 15:48:17 +03:00
2023-01-30 17:17:58 +00:00
2023-01-30 09:29:57 +00:00
2022-05-29 23:41:25 +03:00
2021-10-12 17:26:36 +03:00
2023-01-25 12:31:35 +00:00
2021-10-12 17:26:36 +03:00
2021-11-22 17:01:17 +03:00
2021-11-22 17:01:17 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-11-22 17:01:17 +03:00
2021-11-22 17:01:17 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2022-12-14 21:46:41 +00:00
2022-03-15 05:34:19 +00:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2022-03-15 05:34:19 +00:00
2022-07-06 10:02:11 +00:00
2022-03-15 05:34:19 +00:00
2021-10-12 17:26:36 +03:00
2022-12-14 21:46:41 +00:00
2022-01-14 13:51:57 +00:00
2022-01-14 13:51:57 +00:00
2022-03-30 06:27:59 +00:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2022-03-15 05:34:19 +00:00
2021-10-12 17:26:36 +03:00
2021-11-26 19:39:48 +03:00
2021-11-26 19:39:48 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2022-12-02 21:54:18 +00:00
2022-12-02 21:54:18 +00:00
2022-03-15 05:34:19 +00:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2023-02-15 08:13:50 +00:00
2023-02-15 08:13:50 +00:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2022-11-28 16:43:53 +00:00
2022-11-28 16:43:53 +00:00
2022-11-28 16:43:53 +00:00
2022-11-28 16:43:53 +00:00
2022-11-28 16:43:53 +00:00
2021-10-12 17:26:36 +03:00
2022-12-14 21:46:41 +00:00
2021-10-12 17:26:36 +03:00
2021-11-22 17:01:17 +03:00
2021-11-22 17:01:17 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-11-22 17:01:17 +03:00
2021-11-22 17:01:17 +03:00
2021-10-12 17:26:36 +03:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00
2021-10-12 17:26:36 +03:00