Files
Nim/tests/template
metagn 62d8ca4306 don't transform typed bracket exprs to [] calls in templates (#23175)
fixes #22775

It's pre-existing that [`prepareOperand` doesn't typecheck expressions
which have
types](a4f3bf3742/compiler/sigmatch.nim (L2444)).
Templates can take typed subscript expressions, transform them into
calls to `[]`, and then have this `[]` not be resolved later if the
expression is nested inside of a call argument, which leaks an untyped
expression past semantic analysis. To prevent this, don't transform any
typed subscript expressions into calls to `[]` in templates. Ditto for
curly subscripts (with `{}`) and assignments to subscripts and curly
subscripts (with `[]=` and `{}=`).
2024-01-07 07:48:32 +01:00
..
2018-04-18 21:19:23 +02:00
2016-08-04 01:37:41 +02:00
2021-04-01 08:47:59 +02:00
2021-05-31 13:27:44 +02:00
2023-04-26 08:02:44 +02:00
2018-12-11 21:23:22 +01:00
2022-07-15 12:37:08 +02:00
2017-03-06 18:38:15 +01:00
2020-08-27 15:50:59 +02:00
2019-08-23 16:15:02 +02:00
2017-07-25 09:28:23 +02:00
2020-10-30 09:59:56 +01:00
2019-05-29 22:21:51 +02:00
2018-12-11 21:23:22 +01:00
2017-07-25 09:28:23 +02:00