summary refs log tree commit diff stats
path: root/compiler/pathutils.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-05-08 18:35:26 +0300
committerGitHub <noreply@github.com>2024-05-08 09:35:26 -0600
commit09bd9d0b19a69a56b875eff6e6d119aaf67664fd (patch)
tree379ac17aa8b136edf0e5def100228b550a39be0e /compiler/pathutils.nim
parente6f66e4d131fb8cf3236df6cb14e219dbb5d0c77 (diff)
downloadNim-09bd9d0b19a69a56b875eff6e6d119aaf67664fd.tar.gz
fix semFinishOperands for bracket expressions [backport:2.0] (#23571)
fixes #23568, fixes #23310

In #23091 `semFinishOperands` was changed to not be called for `mArrGet`
and `mArrPut`, presumably in preparation for #23188 (not sure why it was
needed in #23091, maybe they got mixed together), since the compiler
handles these later and needs the first argument to not be completely
"typed" since brackets can serve as explicit generic instantiations in
which case the first argument would have to be an unresolved generic
proc (not accepted by `finishOperand`).

In this PR we just make it so `mArrGet` and `mArrPut` specifically skip
calling `finishOperand` on the first argument. This way the generic
arguments in the explicit instantiation get typed, but not the
unresolved generic proc.
Diffstat (limited to 'compiler/pathutils.nim')
0 files changed, 0 insertions, 0 deletions