Etan Kissling
735e3eea78
allow converting static vars to openArray ( #19049 )
...
When assigning constant output to a seq, and then passing that static
seq to other functions that take `openArray`, the compiler may end up
producing errors, as it does not know how to convert `static[seq[T]]`
to `openArray[T]`. By ignoring the `static` wrapper on the type for
the purpose of determining data memory location and length, this gets
resolved cleanly. Unfortunately, it is relatively tricky to come up
with a minimal example, as there are followup problems from the failing
conversion, e.g., this may lead to `internal error: inconsistent
environment type`, instead of the relevant `openArrayLoc` error message.
(cherry picked from commit 490c4226a5 )
2021-10-27 11:04:39 +02:00
..
2019-09-27 07:02:54 +02:00
2019-11-28 17:13:04 +01:00
2019-12-05 17:31:51 +01:00
2019-09-27 07:02:54 +02:00
2020-11-26 08:09:49 +01:00
2020-05-18 22:16:07 +02:00
2019-11-28 17:13:04 +01:00
2020-01-23 11:06:28 +01:00
2020-01-17 10:34:31 +01:00
2021-10-27 11:04:39 +02:00
2021-08-24 07:18:08 +02:00
2020-01-23 14:25:22 +01:00
2019-12-05 13:45:16 +01:00
2020-05-20 15:30:20 +02:00
2021-02-19 20:36:13 +01:00
2020-01-23 13:45:31 +01:00
2020-01-17 10:34:31 +01:00
2020-05-06 17:08:43 +02:00
2019-11-28 17:13:04 +01:00
2021-04-13 09:59:53 +02:00
2020-06-24 06:56:14 +02:00
2020-03-18 16:57:34 +01:00
2021-04-13 09:59:53 +02:00
2020-02-27 13:22:18 +01:00
2021-05-17 16:13:10 +02:00
2021-02-01 15:24:46 +01:00
2017-01-07 22:35:09 +01:00
2019-11-28 17:13:04 +01:00
2020-05-19 12:12:45 +02:00
2020-02-07 06:58:04 +01:00
2020-05-06 17:09:12 +02:00
2020-03-16 19:05:33 +01:00
2020-02-04 14:08:56 +01:00
2019-11-28 17:13:04 +01:00
2020-05-06 17:22:16 +02:00
2019-11-28 17:13:04 +01:00
2019-11-28 17:13:04 +01:00
2020-03-11 01:01:25 +01:00
2019-10-03 00:48:31 -04:00
2020-03-31 22:54:48 +02:00
2020-02-26 10:26:47 +01:00
2019-11-28 17:13:04 +01:00
2019-07-18 00:36:03 +02:00
2019-11-28 17:13:04 +01:00
2019-09-03 18:43:57 +02:00
2021-04-13 09:59:53 +02:00
2021-03-18 17:25:41 +01:00
2020-04-02 08:53:52 +02:00
2021-04-13 09:59:53 +02:00
2019-11-28 17:13:04 +01:00
2021-04-13 09:59:53 +02:00
2019-11-28 17:13:04 +01:00
2020-10-09 12:06:05 +02:00
2020-06-01 12:15:15 +02:00
2021-04-13 09:59:53 +02:00
2021-05-17 19:04:34 +02:00
2021-05-17 16:13:10 +02:00
2020-03-19 20:38:25 +01:00
2020-04-02 02:56:18 +02:00
2020-03-21 07:12:10 +01:00
2019-07-18 00:36:03 +02:00
2020-05-18 22:16:07 +02:00
2020-05-06 17:22:16 +02:00
2020-03-31 22:54:48 +02:00
2019-11-28 17:13:04 +01:00
2020-02-06 11:17:00 +01:00
2020-06-01 17:41:04 +02:00
2020-04-01 17:48:17 +02:00
2020-10-06 08:49:06 +02:00
2020-04-03 09:10:45 +02:00
2020-01-17 10:34:31 +01:00
2020-02-27 13:22:18 +01:00
2019-09-27 07:02:54 +02:00
2019-11-28 17:13:04 +01:00
2019-11-28 17:13:04 +01:00
2019-07-01 11:59:02 +02:00
2019-09-27 07:02:54 +02:00
2021-05-17 19:04:34 +02:00
2020-02-06 11:17:00 +01:00
2020-06-01 12:15:28 +02:00
2020-01-17 10:34:31 +01:00
2020-02-27 13:22:18 +01:00
2019-11-28 17:13:04 +01:00
2020-03-05 15:31:22 +01:00
2019-11-28 17:13:04 +01:00
2020-12-19 14:21:50 +01:00
2018-05-27 19:19:12 +02:00
2021-02-09 20:23:13 +01:00
2019-11-28 17:13:04 +01:00
2019-11-28 17:13:04 +01:00
2019-10-04 22:43:47 +02:00
2020-10-09 12:06:05 +02:00
2021-04-13 09:59:53 +02:00
2019-07-18 00:36:03 +02:00
2020-03-08 10:55:19 +01:00
2019-11-28 17:13:04 +01:00
2019-11-28 17:13:04 +01:00
2019-11-28 17:13:04 +01:00
2020-03-20 16:39:55 +01:00
2020-10-24 17:18:44 +02:00
2020-07-29 10:39:29 +02:00
2021-04-13 09:59:53 +02:00
2021-05-17 19:04:34 +02:00
2020-09-11 13:58:04 +02:00
2020-11-26 08:09:49 +01:00
2020-03-18 13:43:32 +01:00
2021-04-13 09:59:53 +02:00
2019-11-28 17:13:04 +01:00
2020-07-29 11:59:20 +02:00
2020-04-01 19:38:44 +02:00
2021-04-13 09:59:53 +02:00
2020-09-11 13:58:04 +02:00
2021-04-13 09:59:53 +02:00
2021-04-13 09:59:53 +02:00
2020-07-29 10:43:48 +02:00
2020-04-01 19:38:44 +02:00
2020-03-05 16:02:34 +01:00
2020-10-14 11:00:47 +02:00
2020-05-06 17:08:32 +02:00
2020-10-09 10:04:24 +02:00
2020-04-03 12:06:23 +02:00
2020-03-21 07:12:10 +01:00
2020-04-01 17:49:29 +02:00
2020-02-26 10:26:47 +01:00
2020-04-03 09:10:45 +02:00
2021-04-13 09:59:53 +02:00
2020-11-26 08:09:49 +01:00
2019-11-28 17:13:04 +01:00
2021-02-02 14:35:54 +01:00
2019-11-28 17:13:04 +01:00
2019-01-14 17:00:54 -08:00
2020-10-26 11:14:55 +01:00
2020-03-26 15:18:45 +00:00
2020-03-26 09:26:19 +01:00
2021-04-28 08:50:39 +02:00
2020-03-26 15:18:45 +00:00
2020-01-17 10:34:31 +01:00
2021-02-22 13:51:01 +01:00
2020-04-02 12:57:32 +02:00
2019-11-28 17:13:04 +01:00