Files
Nim/compiler
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
2020-05-18 22:16:07 +02:00
2019-11-28 17:13:04 +01:00
2020-05-20 15:30:20 +02:00
2020-03-18 16:57:34 +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
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-10-09 12:06:05 +02:00
2020-03-21 07:12:10 +01:00
2020-05-18 22:16:07 +02:00
2020-05-06 17:22:16 +02:00
2019-09-27 07:02:54 +02:00
2019-11-28 17:13:04 +01:00
2019-09-27 07:02:54 +02:00
2019-11-28 17:13:04 +01:00
2021-02-09 20:23:13 +01:00
2020-10-09 12:06:05 +02:00
2020-03-08 10:55:19 +01:00
2019-11-28 17:13:04 +01:00
2020-07-29 10:39:29 +02:00
2020-09-11 13:58:04 +02:00
2020-07-29 10:43:48 +02:00
2020-03-05 16:02:34 +01:00
2020-10-09 10:04:24 +02:00
2020-03-21 07:12:10 +01:00
2019-11-28 17:13:04 +01:00
2021-02-02 14:35:54 +01:00
2020-03-26 15:18:45 +00:00
2020-03-26 15:18:45 +00:00

This directory contains the Nim compiler written in Nim. Note that this
code has been translated from a bootstrapping version written in Pascal, so
the code is **not** a poster child of good Nim code.

See https://nim-lang.org/docs/intern.html for more information.