Skip to content

Incorrect "unreachable code" detection in for/when construction inside of a sub #2176

@aldem

Description

@aldem

This:

image

Works perfectly (no errors) when on file level (in or outside of a block), but gives an error when used inside of a sub, and only for die, anything else also works:

image

  • IntelliJ Idea 2020.1.1, Win10
  • Perl Plugin 2020.1, perl support level set to 5.16

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions