Skip to content

finally in top level statements have issues #930

@skyfex

Description

@skyfex

The following code fails in devel:

finally: 
  echo "B"
whiskey.nim(1, 0) Error: invalid expression: '
finally: 
  echo "B"'

Add a try-except statement before it, and it compiles:

try:
  discard
except EOS:
  discard

finally: 
  echo "B"

Metadata

Metadata

Assignees

Labels

DocumentationRelated to documentation content (not generation).Easy

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions