Andrew Kelley
7e9b23e6dc
Sema: respect requiresComptime of function return types
...
When doing a function call, if the return type requires comptime, the
function is analyzed as an inline/comptime call.
There is an important TODO here. I will reproduce the comment from this
commit:
> In the case of a comptime/inline function call of a generic function,
> the function return type needs to be the resolved return type based on
> the function parameter type expressions being evaluated with comptime arguments
> passed in. Otherwise, it ends up being .generic_poison and failing the
> comptime/inline function call analysis.
2021-08-05 23:26:11 -07:00
..
2021-08-05 19:19:19 -07:00
2021-08-01 18:05:07 +02:00
2021-07-28 18:17:11 -04:00
2021-07-22 08:09:46 -07:00
2021-08-01 16:13:58 -07:00
2021-08-05 23:20:10 -07:00
2021-07-26 20:41:00 -04:00
2021-06-29 14:25:04 -07:00
2021-06-11 15:57:52 -07:00
2020-09-21 18:38:55 -07:00
2021-07-28 08:06:22 -07:00
2021-08-01 16:13:58 -07:00
2021-08-04 21:11:31 -07:00
2021-06-14 00:16:40 +03:00
2021-06-21 17:03:03 -07:00
2020-12-07 17:27:09 -07:00
2021-07-23 22:42:31 -07:00
2021-03-25 22:05:21 -04:00
2021-06-09 17:26:58 -04:00
2021-07-23 22:42:31 -07:00
2021-07-23 22:42:31 -07:00
2021-07-23 22:42:31 -07:00
2021-07-23 17:06:19 +02:00
2021-08-01 16:13:58 -07:00
2021-08-01 03:57:34 -04:00
2021-06-21 17:03:03 -07:00
2021-08-05 23:20:53 -07:00
2021-07-23 22:42:31 -07:00
2021-06-03 17:02:16 -05:00
2021-08-05 19:19:19 -07:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-07-30 16:17:59 -07:00
2021-07-20 12:19:16 -07:00
2021-08-05 23:26:11 -07:00
2021-07-23 22:42:31 -07:00
2021-07-08 14:10:49 -07:00
2021-07-23 22:42:31 -07:00
2021-06-30 21:49:00 -05:00
2021-06-21 17:03:03 -07:00
2021-07-28 17:46:02 -04:00
2021-08-05 23:26:11 -07:00
2020-09-21 18:38:55 -07:00
2021-08-05 16:37:21 -07:00
2021-01-14 20:41:37 -07:00
2021-07-11 00:06:47 +02:00
2018-09-18 00:13:17 -04:00
2018-10-27 11:35:01 -04:00
2020-09-21 21:14:01 -07:00
2021-06-14 00:16:40 +03:00
2021-02-25 19:41:30 -08:00
2020-12-16 12:18:14 +01:00
2021-07-10 15:58:38 -04:00
2021-07-28 08:06:22 -07:00
2021-07-28 08:06:22 -07:00
2021-07-10 15:58:38 -04:00
2021-07-26 20:41:00 -04:00
2021-07-26 20:41:00 -04:00
2021-08-05 23:26:11 -07:00