Skip to content

Handle refinements in nested classes #315

Description

@CatarinaGamboa

Refinements on fields of nested classes depend on declaration order and on field names. Real code often puts helper classes (runnables, DTOs) at the bottom of the file, so this comes up when verifying real-world examples (see #308, fixed by #314 for field writes).

The root cause is that fields are registered only in the second pass, in source order. They are stored under a name-only key (this#<name>), and the variable context is reset whenever any class is entered, nested classes included.

Sub-issues track the specific cases:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions