summary refs log tree commit diff stats
path: root/testament
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-09-02 19:11:59 +0300
committerGitHub <noreply@github.com>2024-09-02 18:11:59 +0200
commit5e55e16ad83483f15f5a5df7dfdccf70ed9e3e8e (patch)
treedbf1d4bae4468dc74fb08bfa2d5fdf5c12771023 /testament
parent4789af71fe107e137524bc7746b902e644aca2dc (diff)
downloadNim-5e55e16ad83483f15f5a5df7dfdccf70ed9e3e8e.tar.gz
check constant conditions in generic `when` in objects (#24042)
fixes #24041

`when` statements in generic object types normally just leave their
conditions as expressions and still typecheck their branch bodies.
Instead of this, when the condition can be evaluated as a constant as
well as the ones before it and it resolves to `true`, it now uses the
body of that branch without typechecking the remaining ones.
Diffstat (limited to 'testament')
0 files changed, 0 insertions, 0 deletions