Dmitrii Gridin
9888cbbfcd
[FIR] do not transform propagated annotations from place other than declaration side
...
We shouldn't transform annotations not from declaration side due to
a possible different context and to avoid unexpected transformation of
unrelated declarations
Example:
```kotlin
fun implicitType1() = TopLevelObject.expectedType()
object TopLevelObject {
private const val privateConstVal = "privateConstVal"
fun expectedType(): @Anno(privateConstVal) Int = 4
}
```
Here we will try to transform the annotation from `expectedType`
during `implicitType1` and as the result, we will see unresolved
reference on the declaration side. This commit fixes this issue.
This solution is based on the fact that the compiler anyway will
resolve the propagated annotation on the declaration side.
And it doesn't matter if it is resolved before or after the call site
declaration transformation, because as a global result, we will observe
that all declarations are resolved correctly in the right context.
Hence, this commit fixes the issue in the case of "full resolution"
which is true for the compiler, but it is not correct for Low Level
FIR where we resolve declarations on demand. It will be solved in
the next commits
^KT-63042
2023-12-07 12:26:40 +00:00
..
2023-12-07 12:26:40 +00:00
2023-09-19 13:42:54 +00:00
2023-12-05 18:15:53 +00:00
2023-11-14 15:19:33 +00:00
2023-11-16 19:29:58 +00:00
2023-10-19 09:27:45 +00:00
2023-10-10 18:23:19 +00:00
2023-09-21 22:33:50 +00:00
2023-10-05 10:18:09 +00:00
2023-12-06 10:54:21 +00:00
2023-07-13 17:37:48 +00:00
2023-11-02 20:47:05 +00:00
2023-11-09 19:28:26 +00:00
2023-10-10 18:22:41 +00:00
2023-10-09 06:55:43 +00:00
2023-05-05 12:35:46 +00:00
2023-11-21 08:11:20 +00:00
2023-11-14 15:19:33 +00:00
2023-02-15 08:13:42 +00:00
2023-11-29 13:35:00 +00:00
2023-11-29 15:10:36 +00:00
2023-11-23 15:55:07 +00:00
2023-09-01 09:30:28 +03:00
2023-11-02 18:39:04 +00:00
2023-05-30 10:44:41 +00:00
2023-11-21 13:12:46 +00:00
2023-12-05 17:49:18 +00:00
2023-12-06 10:54:21 +00:00
2023-11-23 15:25:44 +00:00
2023-11-08 14:05:56 +00:00
2023-10-30 07:22:34 +00:00
2023-12-06 17:34:05 +00:00
2023-11-08 15:45:48 +00:00
2023-09-01 09:30:28 +03:00
2023-09-22 21:46:09 +00:00
2023-11-16 20:12:34 +00:00
2023-11-23 14:24:47 +00:00
2023-12-04 16:51:46 +00:00
2023-11-28 07:55:15 +00:00
2023-12-04 15:42:12 +00:00
2023-04-19 20:12:38 +00:00
2023-11-20 10:32:05 +00:00
2023-10-26 10:51:48 +00:00
2023-11-14 15:19:33 +00:00
2023-06-22 12:29:11 +00:00
2023-11-22 08:46:17 +00:00
2023-12-05 18:16:52 +00:00
2023-04-20 11:05:02 +00:00
2023-10-26 11:08:27 +00:00
2023-11-29 16:33:18 +00:00
2023-11-22 19:43:24 +00:00
2023-12-06 18:35:39 +00:00
2023-10-19 09:27:45 +00:00
2023-10-19 09:27:45 +00:00
2023-12-05 17:25:28 +00:00
2023-04-30 16:12:54 +00:00
2023-08-31 13:07:00 +00:00
2023-11-08 15:45:48 +00:00
2023-11-17 15:47:34 +00:00
2023-11-30 13:07:23 +00:00
2023-11-24 11:00:10 +00:00
2023-07-04 07:25:22 +00:00
2023-02-28 10:19:18 +00:00
2023-11-10 21:51:53 +00:00
2023-10-06 12:22:57 +00:00
2023-07-12 09:11:01 +00:00
2023-03-02 10:23:38 +00:00
2023-10-24 19:32:54 +00:00
2023-11-28 15:37:09 +00:00
2023-11-28 15:37:09 +00:00
2023-08-24 11:38:13 +00:00
2023-10-27 08:03:00 +00:00
2023-12-04 16:51:46 +00:00
2023-11-16 18:04:26 +00:00
2023-09-18 12:13:02 +00:00
2023-11-30 13:22:39 +00:00
2023-08-21 16:28:48 +00:00
2023-08-24 11:07:45 +00:00
2023-12-01 19:20:26 +00:00
2023-08-04 10:11:57 +00:00
2023-11-14 15:19:33 +00:00
2023-05-19 12:41:37 +02:00
2023-08-18 13:29:20 +00:00
2023-11-16 20:12:34 +00:00
2023-11-14 15:19:33 +00:00
2023-05-30 10:44:41 +00:00
2023-02-16 10:50:48 +00:00
2023-11-02 12:39:45 +00:00
2023-08-03 13:31:07 +00:00
2023-02-06 08:09:56 +00:00
2023-11-20 20:04:45 +00:00
2023-11-24 21:28:16 +00:00
2023-11-03 08:14:28 +00:00
2023-08-25 08:55:58 +00:00
2023-10-26 10:51:48 +00:00
2023-11-08 15:45:48 +00:00
2023-09-04 08:05:07 +00:00
2023-10-16 17:16:56 +00:00
2023-09-01 09:30:28 +03:00
2023-06-07 16:45:28 +00:00
2023-11-15 07:52:11 +00:00
2023-11-15 07:52:11 +00:00
2023-07-10 09:43:22 +00:00
2023-03-10 17:29:37 +00:00
2023-04-19 20:12:38 +00:00
2023-04-19 20:12:38 +00:00
2023-10-19 09:27:45 +00:00
2023-10-19 09:27:44 +00:00
2023-09-01 09:30:28 +03:00
2023-09-01 09:30:28 +03:00
2023-08-17 15:13:38 +00:00
2023-08-17 15:13:38 +00:00
2023-04-19 20:12:38 +00:00
2023-04-19 16:05:19 +00:00
2023-10-19 09:27:45 +00:00
2023-10-24 20:59:56 +00:00
2023-07-13 13:41:36 +00:00
2023-07-13 13:41:36 +00:00
2023-03-31 15:01:50 +00:00
2023-03-31 15:01:50 +00:00
2023-03-31 15:01:50 +00:00
2023-03-31 15:01:50 +00:00
2023-08-08 11:00:04 +00:00
2023-08-08 11:00:04 +00:00
2023-01-13 21:32:51 +00:00
2023-01-13 21:32:51 +00:00
2023-07-03 10:11:36 +00:00
2023-01-30 09:29:57 +00:00
2023-05-17 12:44:52 +00:00
2023-01-09 21:37:22 +00:00
2023-01-09 21:37:22 +00:00
2023-01-09 21:37:22 +00:00
2023-01-09 21:37:22 +00:00
2023-03-31 15:01:50 +00:00
2023-03-31 15:01:50 +00:00
2023-08-17 13:55:19 +00:00
2023-07-27 10:28:52 +00:00
2023-10-02 14:37:00 +00:00
2023-08-24 07:54:57 +00:00
2023-04-19 20:12:36 +00:00
2023-03-02 10:23:38 +00:00
2023-03-31 15:01:50 +00:00
2023-03-31 15:01:50 +00:00
2023-03-31 15:01:50 +00:00
2023-11-28 15:37:09 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-07-20 12:50:06 +00:00
2023-08-31 10:19:33 +00:00
2023-11-14 15:19:32 +00:00
2023-01-17 06:26:34 +00:00
2023-11-28 15:37:09 +00:00
2023-07-04 16:00:45 +00:00
2023-08-08 11:00:04 +00:00
2023-11-02 13:20:55 +00:00
2023-11-02 13:20:55 +00:00
2023-11-02 13:20:55 +00:00
2023-05-25 14:52:04 +00:00
2023-03-31 15:01:50 +00:00
2023-04-19 20:12:38 +00:00
2023-04-19 20:12:38 +00:00
2023-03-21 08:48:38 +00:00
2023-03-02 10:19:57 +00:00
2023-03-02 10:19:57 +00:00
2023-03-02 10:19:57 +00:00
2023-10-26 20:07:50 +00:00
2023-10-26 20:07:50 +00:00
2023-04-19 20:12:38 +00:00
2023-04-19 20:12:38 +00:00
2023-08-25 12:23:56 +00:00
2023-08-25 12:23:56 +00:00
2023-08-25 12:23:56 +00:00
2023-08-25 12:23:56 +00:00
2023-08-01 14:58:52 +00:00
2023-08-01 14:58:52 +00:00
2023-05-22 11:40:30 +00:00
2023-05-22 11:40:30 +00:00
2023-05-25 12:19:30 +00:00
2023-05-25 12:19:30 +00:00
2023-07-04 16:00:45 +00:00
2023-04-19 20:12:38 +00:00
2023-04-19 20:12:38 +00:00
2023-08-24 07:54:57 +00:00
2023-08-15 08:04:19 +00:00
2023-08-15 08:04:19 +00:00
2023-01-16 17:24:22 +00:00
2023-01-16 17:24:22 +00:00
2023-01-20 08:09:08 +00:00
2023-01-20 08:09:08 +00:00
2023-01-12 13:51:11 +00:00
2023-01-12 13:51:11 +00:00
2023-02-17 09:15:59 +00:00
2023-02-17 09:15:59 +00:00
2023-02-16 17:48:38 +00:00
2023-02-16 17:48:38 +00:00
2023-02-27 15:00:30 +00:00
2023-02-27 15:00:30 +00:00
2023-02-27 15:00:30 +00:00
2023-03-07 11:35:47 +00:00
2023-03-07 11:35:47 +00:00
2023-03-09 09:43:03 +00:00
2023-03-09 09:43:03 +00:00
2023-03-09 09:43:02 +00:00
2023-03-07 20:28:02 +00:00
2023-03-09 09:44:09 +00:00
2023-03-14 10:25:02 +00:00
2023-05-09 17:23:45 +00:00
2023-07-25 10:55:41 +00:00
2023-07-25 10:55:41 +00:00
2023-09-01 16:00:06 +00:00
2023-09-01 16:00:06 +00:00
2023-09-04 08:05:07 +00:00
2023-08-31 13:07:00 +00:00
2023-03-02 10:19:57 +00:00
2023-07-31 16:12:17 +00:00
2023-08-18 13:31:04 +00:00
2023-05-12 14:47:24 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-16 08:09:14 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-28 10:57:40 +00:00
2023-08-17 13:55:19 +00:00
2023-11-28 07:55:15 +00:00
2023-11-28 07:55:15 +00:00
2023-09-18 11:41:42 +00:00
2023-08-18 15:16:13 +00:00
2023-01-30 17:17:58 +00:00
2023-03-27 13:46:13 +00:00
2023-12-04 10:12:43 +00:00
2023-07-03 10:11:36 +00:00
2023-10-26 20:07:50 +00:00
2023-01-13 21:32:51 +00:00
2023-03-13 16:34:47 +00:00
2023-03-13 16:34:47 +00:00
2023-01-31 08:39:43 +00:00
2023-01-31 08:39:43 +00:00
2023-01-31 08:39:43 +00:00
2023-09-04 08:05:07 +00:00
2023-01-13 21:32:51 +00:00
2023-03-21 08:48:38 +00:00
2023-03-21 08:48:38 +00:00
2023-03-21 08:48:38 +00:00
2023-03-21 08:48:38 +00:00
2023-01-13 21:32:51 +00:00
2023-03-31 12:54:30 +00:00
2023-10-06 12:22:57 +00:00
2023-03-02 10:23:38 +00:00
2023-09-19 13:42:54 +00:00
2023-09-22 10:48:31 +00:00
2023-05-02 15:10:55 +00:00
2023-05-02 15:10:55 +00:00
2023-10-12 17:44:47 +00:00
2023-01-13 21:32:51 +00:00
2023-08-09 16:35:59 +00:00
2023-08-09 16:35:59 +00:00
2023-02-15 08:13:41 +00:00
2023-03-15 13:56:51 +00:00
2023-03-15 13:56:51 +00:00
2023-05-08 14:25:54 +00:00
2023-03-31 15:01:50 +00:00
2023-07-10 10:26:43 +00:00
2023-03-02 10:23:38 +00:00
2023-03-02 10:23:38 +00:00
2023-05-15 10:03:19 +00:00
2023-09-04 08:05:08 +00:00
2023-02-27 15:00:30 +00:00
2023-02-27 15:00:30 +00:00
2023-07-25 13:16:37 +00:00
2023-03-31 12:54:29 +00:00
2023-03-02 10:23:38 +00:00
2023-12-04 10:12:43 +00:00
2023-09-22 08:38:50 +00:00
2023-09-18 11:17:10 +00:00
2023-09-18 11:17:10 +00:00
2023-08-18 13:29:20 +00:00
2023-08-18 13:29:20 +00:00
2023-10-12 08:56:12 +00:00
2023-10-11 08:33:05 +00:00
2023-10-09 06:55:43 +00:00
2023-08-14 14:55:26 +00:00
2023-01-31 22:05:18 +00:00
2023-01-31 22:05:18 +00:00
2023-01-31 22:05:18 +00:00
2023-03-02 10:23:38 +00:00
2023-03-02 10:23:38 +00:00
2023-03-02 10:23:38 +00:00
2023-09-15 16:37:50 +00:00
2023-07-25 13:16:37 +00:00
2023-09-07 13:48:22 +00:00
2023-03-02 10:23:38 +00:00
2023-04-19 20:12:38 +00:00
2023-04-19 20:12:38 +00:00
2023-03-27 13:46:13 +00:00
2023-03-27 13:46:13 +00:00
2023-04-19 20:12:38 +00:00
2023-04-19 20:12:38 +00:00
2023-05-16 10:40:25 +00:00
2023-05-16 10:40:25 +00:00