Files
Nim/tests/vm
metagn d98ef312f0 don't construct array type for already typed nkBracket node (#24224)
fixes #23010, split from #24195

When resemming bracket nodes, the compiler currently unconditionally
makes a new node with an array type based on the node. However the VM
can generate bracket nodes with `seq` types, which this erases. To fix
this, if a bracket node already has a type, we still resem the bracket
node, but don't construct a new type for it, instead using the type of
the original node.

A version of this was rejected that didn't resem the node at all if it
was typed, but I can't find it. The difference with this one is that the
individual elements are still resemmed.

This should fix the break caused by #24184 so we could redo it after
this PR but it might still have issues, not to mention the related
pre-existing issues like #22793, #12559 etc.
2024-10-03 19:35:53 +02:00
..
2018-08-13 13:02:52 +02:00
2017-07-25 09:28:23 +02:00
2019-02-01 12:12:10 +01:00
2018-08-13 13:02:52 +02:00
2016-08-23 01:10:34 +02:00
2017-02-05 08:51:43 +01:00
2019-09-28 19:50:20 +02:00
2019-08-02 22:59:04 +01:00
2019-05-21 21:31:40 +02:00
2018-12-11 21:23:22 +01:00
2016-10-09 18:02:48 +02:00
2018-06-26 21:25:27 +02:00
2018-10-27 14:10:05 +01:00
2018-08-13 23:16:03 +02:00
2018-11-23 11:58:28 +01:00
2020-12-28 14:13:21 +01:00
2020-11-05 14:00:08 +01:00
2020-12-28 14:13:21 +01:00
2017-07-25 09:28:23 +02:00
2014-03-16 20:42:49 +02:00