Skip to content

Functions inside structures don't see getters #31

@gludit

Description

@gludit

While following works:

{ test = 3, foo () = test }

when test is defined as a getter:

{ get test() = 3+4, foo () = test }

yeti compiler complains with Unknown identifier: test

Shouldn't same scoping rules apply to getters and regular fields?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions