metagn
baec1955b5
don't instantiate generic body type symbols in generic expressions ( #24092 )
...
fixes #24090
Generic body types are normally a sign of an uninstantiated type, and so
give errors when trying to instantiate them. However when instantiating
free user expressions like the nodes of `tyFromExpr`, generic default
params, static values etc, they can be used as arguments to macros or
templates etc (as in the issue). So, we don't try to instantiate generic
body type symbols at all in free expressions such as these (but not in
for example type nodes), and avoid the error.
In the future there should be a "concrete type" check for generic body
types different from the check in type instantiation to deal with things
like #24091 , if we do want to allow this use of them.
2024-09-10 12:19:39 +02:00
..
2023-04-13 12:11:06 +02:00
2023-09-01 09:00:15 +02:00
2023-08-09 06:12:14 +02:00
2023-08-09 06:12:14 +02:00
2015-09-13 23:26:44 +02:00
2015-08-07 21:28:45 +02:00
2023-05-24 20:39:40 +02:00
2023-06-06 06:54:07 +02:00
2015-08-10 01:31:42 +02:00
2022-09-03 09:52:13 +02:00
2024-08-12 15:33:26 +02:00
2024-08-12 15:33:26 +02:00
2015-07-02 16:29:22 +02:00
2023-09-16 09:16:12 +02:00
2023-06-17 15:24:32 +08:00
2018-11-23 11:58:28 +01:00
2022-10-26 19:45:51 +08:00
2023-09-01 13:42:47 +02:00
2023-04-13 12:11:06 +02:00
2020-07-14 11:24:17 +02:00
2018-05-07 09:37:49 +02:00
2020-07-11 17:09:41 +02:00
2020-09-21 13:37:14 +02:00
2024-01-11 07:45:11 +01:00
2022-10-27 12:22:04 +02:00
2018-12-11 21:23:21 +01:00
2022-10-11 11:42:49 +02:00
2023-06-05 16:30:08 +08:00
2018-12-11 21:23:21 +01:00
2023-08-09 12:45:43 +02:00
2021-05-02 00:26:41 +02:00
2023-08-09 12:45:43 +02:00
2023-09-01 09:00:15 +02:00
2023-09-07 05:46:45 +02:00
2023-08-08 16:06:47 +08:00
2021-09-17 06:51:26 +02:00
2024-08-20 16:20:35 +02:00
2022-12-04 20:37:23 +01:00
2023-09-08 06:50:39 +02:00
2023-08-10 07:56:09 +02:00
2023-05-30 10:46:24 +08:00
2023-08-09 06:12:14 +02:00
2023-10-21 22:00:16 +02:00
2024-01-11 07:45:11 +01:00
2024-07-06 22:50:46 +02:00
2024-07-19 13:53:35 +02:00
2024-08-26 06:54:38 +02:00
2024-08-26 06:54:38 +02:00
2024-08-20 11:41:50 +02:00
2020-03-11 09:26:57 +01:00
2023-05-05 07:28:06 +02:00
2016-02-29 12:19:54 +01:00
2017-04-15 02:53:28 +03:00
2020-11-04 16:56:22 +01:00
2024-08-30 16:12:38 +02:00
2024-08-20 21:31:19 +02:00
2022-09-03 09:52:13 +02:00
2018-02-10 20:55:22 +01:00
2023-06-06 06:54:07 +02:00
2016-03-28 02:26:38 +02:00
2018-12-11 21:23:23 +01:00
2020-07-14 19:50:42 +02:00
2017-04-28 18:26:41 +03:00
2020-02-08 09:30:24 +01:00
2019-10-17 09:55:41 +02:00
2023-06-06 06:54:07 +02:00
2024-08-04 07:24:59 +08:00
2022-10-02 06:42:41 +02:00
2022-09-22 14:19:36 -04:00
2017-03-24 16:59:47 +02:00
2016-02-29 12:19:54 +01:00
2018-10-14 08:50:39 +02:00
2018-12-11 21:23:23 +01:00
2022-12-13 22:57:07 +08:00
2023-12-14 09:55:04 +01:00
2018-11-08 22:28:29 +01:00
2018-12-11 21:23:22 +01:00
2024-09-02 18:11:59 +02:00
2024-09-03 05:45:08 +02:00
2023-09-07 05:30:37 +02:00
2024-09-02 18:22:20 +02:00
2023-09-16 09:16:12 +02:00
2022-09-03 09:52:13 +02:00
2018-06-16 16:46:32 +03:00
2018-11-23 13:16:45 +01:00
2024-08-30 16:12:38 +02:00
2024-08-28 20:51:13 +02:00
2017-04-08 17:28:19 +03:00
2020-11-29 10:42:50 -08:00
2024-05-08 09:35:26 -06:00
2024-09-06 11:16:43 +02:00
2021-03-17 19:51:50 +01:00
2017-03-31 21:58:09 +02:00
2023-11-30 14:05:45 +01:00
2024-08-12 15:33:26 +02:00
2023-06-06 06:54:07 +02:00
2022-09-23 13:05:05 +02:00
2020-12-28 14:13:21 +01:00
2021-09-11 22:20:22 +02:00
2022-10-11 09:17:09 +02:00
2021-09-30 16:55:43 +02:00
2023-08-27 11:27:47 +02:00
2023-11-22 07:50:38 +01:00
2024-08-28 20:46:36 +02:00
2019-01-22 17:05:26 -08:00
2022-09-16 16:35:53 -04:00
2023-10-02 14:45:04 -04:00
2024-09-10 12:19:39 +02:00
2018-10-16 10:50:10 +02:00
2015-10-27 08:37:56 +01:00
2015-09-04 23:04:32 +02:00
2018-12-11 21:23:22 +01:00
2024-07-11 15:39:44 +02:00