Skip to content

Statement encloses itself #3707

Open
Open
@intrigus-lgtm

Description

@intrigus-lgtm

Description of the issue
It is possible for a Stmt to enclose itself.
Is this expected behavior? If yes, maybe add a note to the docs?

import java

from Stmt s
where s.getEnclosingStmt() = s
select s

Link to query:
https://lgtm.com/query/4871075667428522469/

Metadata

Metadata

Assignees

No one assigned

    Labels

    JavaquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions