Fix semantic analysis with noReturn proc in tail pos (#10422)
Fixes #10417
This commit is contained in:
parent
94f6a6b294
commit
eee9729f53
2 changed files with 12 additions and 1 deletions
|
|
@ -64,3 +64,13 @@ proc return_in_except =
|
|||
try: return_in_except()
|
||||
except: echo "RECOVER"
|
||||
|
||||
block: #10417
|
||||
proc moo() {.noreturn.} = discard
|
||||
|
||||
let bar =
|
||||
try:
|
||||
1
|
||||
except:
|
||||
moo()
|
||||
|
||||
doAssert(bar == 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue