Skip to content

Warn when declaring an @inline method that cannot always be inlined #12202

@retronym

Description

@retronym

Add an opt-in warning (under some specific -Yopt-warnings:... flag) when declaring an @inline method that cannot always be inlined.

  • If the method contains exception handlers (it can only be inlined on top of an empty callsite stack)
  • If the method is not final (it can only be inlined if the receiver is known precisely, or known to be a final subclass)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions