Skip to content

Remove @forceInline from the inlining doc #11766

Closed
@japgolly

Description

@japgolly

According to https://dotty.epfl.ch/docs/reference/metaprogramming/inline.html,

To cross compile between both Scala 3 and Scala 2, we introduce a new @forceInline
annotation which is equivalent to the new inline modifier. Note that
Scala 2 ignores the @forceInline annotation, so one must use both
annotations to guarantee inlining for Scala 3 and at the same time hint inlining
for Scala 2 (i.e. @forceInline @inline).

but it seems that @forceInline was removed in #7475. The documentation should be updated.

Note: I don't know what the replacement solution for cross-compilation is so if someone could share that'd be awesome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions