Nikolay Lunyak
ed493c99e3
[FIR] Unset EnhancedNullability on withNullability() calls
...
Note that `FlexibleNullability` doesn't
exist anymore: it was removed at
`65ea4e18`.
`preserveEnhancedNullability = true`
was needed because if we have an
`@EnhancedNullability DNN`, and we
substitute something into it, then
`withNullability` is called there becase
that's how DNNs work, not becase we want
to obtain some new type with a
different nullability.
This is backed by
the `compiler/testData/diagnostics/tests/j+k/integerNotNullable.kt` test
where we first have
`@EnhancedNullability T & Any`, then
we substitute `{T -> kotlin/Int!}` and
then inside
`org.jetbrains.kotlin.fir.resolve.substitution.AbstractConeSubstitutor#substituteOriginal`
(this is a DNN-specific function) we
call `withNullability(NOT_NULL)`,
and expect the attribute to be preserved. Otherwise this test would
fail with
`OVERLOAD_RESOLUTION_AMBIGUITY` for
`IntBox().put(1)`.
^KT-50221 Fixed
Merge-request: KT-MR-11272
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com >
2023-07-25 07:03:04 +00:00
..
2023-07-25 07:03:04 +00:00
2023-06-05 10:40:17 +00:00
2023-05-15 18:20:45 +00:00
2021-10-12 17:26:36 +03:00
2023-06-05 10:40:17 +00:00
2022-05-19 16:54:04 +00:00
2023-06-05 10:40:17 +00:00
2023-05-15 18:20:45 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2021-09-23 06:59:33 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-04 14:11:19 +00:00
2023-05-30 17:26:30 +00:00
2023-05-04 14:11:19 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 18:20:45 +00:00
2023-03-16 18:07:35 +00:00
2023-05-15 18:20:45 +00:00
2023-05-30 17:26:30 +00:00
2022-02-15 08:40:28 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 18:20:45 +00:00
2022-02-15 08:40:28 +00:00
2023-07-18 00:06:48 +00:00
2023-07-18 00:06:48 +00:00
2023-06-05 10:40:17 +00:00
2023-06-09 08:22:21 +00:00
2023-05-04 14:11:19 +00:00
2023-07-14 20:26:45 +00:00
2023-07-12 11:41:33 +00:00
2023-07-12 11:41:33 +00:00
2023-07-12 11:41:33 +00:00
2023-07-12 11:41:33 +00:00
2023-07-12 11:41:33 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-30 17:26:30 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2022-07-12 12:22:34 +00:00
2023-05-30 17:26:30 +00:00
2022-07-12 12:22:34 +00:00
2022-07-12 12:22:34 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2021-10-12 17:26:36 +03:00
2023-06-05 10:40:17 +00:00
2023-06-09 08:22:21 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2021-12-13 16:24:59 +03:00
2023-06-05 10:40:17 +00:00
2023-05-15 18:20:45 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-05-04 14:11:19 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2023-05-04 14:11:19 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-30 10:44:41 +00:00
2023-05-30 17:26:30 +00:00
2023-06-26 12:39:37 +00:00
2023-07-14 20:26:45 +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
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-01-25 12:31:34 +00:00
2023-01-25 12:31:34 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-02-27 12:58:27 +00:00
2023-05-30 17:26:30 +00:00
2023-02-27 12:58:26 +00:00
2023-02-27 12:58:26 +00:00
2023-07-14 20:26:45 +00:00
2023-07-11 08:28:04 +00:00
2023-07-11 08:28:04 +00:00
2023-07-11 08:28:04 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-03-23 13:12:18 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 18:20:45 +00:00
2023-03-23 13:12:17 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2022-12-14 21:46:41 +00:00
2023-05-30 17:26:30 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-30 17:26:30 +00:00
2023-03-22 15:18:17 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-03-16 18:07:36 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 18:20:45 +00:00
2021-11-09 21:04:38 +03:00
2023-07-14 20:26:45 +00:00
2022-03-30 06:27:59 +00:00
2023-03-22 15:18:16 +00:00
2021-12-09 13:26:40 +03:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2023-06-09 08:22:21 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-03-16 18:07:36 +00:00
2023-05-30 17:26:30 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-01-31 07:53:12 +00:00
2023-01-31 07:53:12 +00:00
2023-01-31 07:53:12 +00:00
2023-01-31 07:53:12 +00:00
2023-01-31 07:53:12 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2022-09-29 08:34:13 +00:00
2022-09-29 08:34:13 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2022-09-29 08:34:13 +00:00
2022-09-29 08:34:13 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-02-20 14:54:09 +00:00
2023-06-05 10:40:17 +00:00
2021-11-17 15:26:38 +03:00
2022-07-23 01:10:53 +02:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2021-12-07 23:17:38 +03:00
2023-05-30 17:26:30 +00:00
2023-06-09 08:22:21 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-01-31 13:43:26 +00:00
2023-05-30 17:26:30 +00:00
2023-05-30 17:26:30 +00:00
2023-01-31 13:43:26 +00:00
2023-07-14 20:26:45 +00:00
2023-06-13 09:47:58 +00:00
2023-06-14 19:02:39 +00:00
2023-06-13 09:47:58 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-04-27 11:02:22 +00:00
2023-05-30 17:26:30 +00:00
2023-06-26 12:39:37 +00:00
2023-01-30 09:29:57 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 18:20:45 +00:00
2021-11-09 21:04:38 +03:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 18:20:45 +00:00
2022-11-21 09:23:54 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-09 09:19:38 +00:00
2023-05-09 09:19:37 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-30 17:26:30 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-07-18 00:06:48 +00:00
2023-07-18 00:06:48 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 18:20:45 +00:00
2021-10-12 17:26:36 +03:00
2023-05-30 17:26:30 +00:00
2022-10-25 08:36:01 +00:00
2023-05-30 17:26:30 +00:00
2023-06-09 08:22:21 +00:00
2022-08-15 21:46:11 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2021-11-17 15:26:38 +03:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-03-16 18:07:36 +00:00
2023-05-30 17:26:30 +00:00
2023-06-09 08:22:21 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-03-16 18:07:36 +00:00
2023-05-30 17:26:30 +00:00
2023-03-22 15:18:17 +00:00
2022-07-22 16:39:52 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2022-07-22 16:39:52 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 18:20:45 +00:00
2022-07-22 16:39:52 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2021-10-12 17:26:36 +03:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2021-11-26 19:39:48 +03:00
2023-05-30 17:26:30 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-07-18 00:06:48 +00:00
2023-07-18 00:06:48 +00:00
2023-05-30 17:26:30 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-06-09 08:22:21 +00:00
2023-06-09 08:22:21 +00:00
2023-06-09 08:22:21 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-05-24 14:07:32 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-04-27 11:02:22 +00:00
2023-06-05 10:40:17 +00:00
2023-05-26 10:55:24 +00:00
2023-01-30 09:29:57 +00:00
2023-07-14 20:26:45 +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
2023-07-14 20:26:45 +00:00
2023-06-14 19:02:39 +00:00
2023-06-14 19:02:39 +00:00
2023-06-05 10:40:17 +00:00
2023-06-05 10:40:17 +00:00
2023-05-11 09:12:26 +00:00
2023-07-14 20:26:45 +00:00
2023-07-21 07:45:52 +00:00
2023-07-21 07:45:52 +00:00
2023-07-21 07:45:52 +00:00
2023-07-21 07:45:52 +00:00
2023-07-21 07:45:52 +00:00
2023-07-21 07:45:52 +00:00
2023-05-30 17:26:30 +00:00
2021-09-23 06:59:33 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2022-10-25 08:36:01 +00:00
2023-06-05 10:40:17 +00:00
2021-11-17 15:26:38 +03:00
2022-06-16 06:51:34 +00:00
2023-07-14 20:26:45 +00:00
2023-06-20 07:07:10 +00:00
2023-06-20 07:07:10 +00:00
2023-06-20 07:07:10 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-04-25 16:42:59 +00:00
2023-05-30 17:26:30 +00:00
2023-06-09 08:22:21 +00:00
2023-04-25 16:42:59 +00:00
2023-07-14 20:26:45 +00:00
2023-06-05 10:40:17 +00:00
2023-05-09 07:36:32 +00:00
2023-06-05 10:40:17 +00:00
2023-03-22 15:18:17 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2023-05-30 17:26:30 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00
2023-07-18 00:06:48 +00:00
2023-07-18 00:06:48 +00:00
2023-05-30 17:26:30 +00:00
2023-05-30 17:26:30 +00:00
2023-05-15 08:16:24 +00:00
2023-07-14 20:26:45 +00:00
2023-04-27 12:19:38 +00:00
2023-04-27 12:19:38 +00:00
2023-04-27 12:19:38 +00:00
2023-07-14 20:26:45 +00:00
2023-05-30 17:26:30 +00:00
2021-10-12 17:26:36 +03:00
2023-07-14 20:26:45 +00:00