Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type resolution: Add support for enclosing methods and constructors #87

Open
ljacqu opened this issue Jun 25, 2023 · 0 comments
Open

Type resolution: Add support for enclosing methods and constructors #87

ljacqu opened this issue Jun 25, 2023 · 0 comments
Milestone

Comments

@ljacqu
Copy link
Owner

ljacqu commented Jun 25, 2023

Classes can be inside methods and, strangely enough, inside constructors:

    private <T> MainClass() {
        class Foo {
            private T elem;
        }
    }

As in the example, there might be type information to get from there. This issue is about extending TypeVariableResolver#registerTypes to not just consider the enclosing class but enclosing methods and constructors, too.

Note that initializer blocks may also contain local classes.

@ljacqu ljacqu added this to the 0.2.0 milestone Aug 20, 2023
@ljacqu ljacqu modified the milestones: 0.2.0, 0.3.0 Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant