-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
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 newinlinemodifier. Note that
Scala 2 ignores the@forceInlineannotation, 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.