Skip to content

Inlining with nested classes #14410

Closed
Closed
@odersky

Description

@odersky

Inlining currently does not work very well if the inline method contains local classes. It works in simple cases but fails in many more complicated ones. Things to try: sealed class hierarchies, enums, generic classes.

It would be good to scan the issues for more concrete examples of what currently fails.

But in any case, what we would need is a systematic approach to copying classes and class hierarchies in inline methods. The tricky bit here is that we have to duplicate a bunch of symbols when inlining and we need to also update all possible references between such symbols.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Semester ProjectGood project to be done by an MSc or strong Bsc computer science student in one semesterarea:inline

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions