diff options
author | metagn <metagngn@gmail.com> | 2024-03-14 13:23:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 11:23:09 +0100 |
commit | fb6c8055683051283f6e094b4f3c2eea8c120207 (patch) | |
tree | 1d0b6dc22d95a5acb368a361f9b9287e94d46c70 /tests/modules | |
parent | 7c11da3f221feeff7029d8802cda0536fc5ab5f0 (diff) | |
download | Nim-fb6c8055683051283f6e094b4f3c2eea8c120207.tar.gz |
propagate efWantStmt in semWhen (#23400)
fixes #23399 The new case introduced in #21657 is triggered by `efWantStmt` but the `when` statement doesn't normally propagate this flag, so propagate it when the `semCheck` param in `semWhen` is true which happens when the `when` statement is `efWhenStmt` anyway.
Diffstat (limited to 'tests/modules')
-rw-r--r-- | tests/modules/tmodulesymtype.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/modules/tmodulesymtype.nim b/tests/modules/tmodulesymtype.nim index b1378ab69..d17c4cca4 100644 --- a/tests/modules/tmodulesymtype.nim +++ b/tests/modules/tmodulesymtype.nim @@ -13,3 +13,10 @@ proc foo() = sequtils foo() + +# issue #23399 +when isMainModule: + sequtils #[tt.Error + ^ expression has no type: sequtils]# + +discard |