Skip to content

For discussion: @inline annotation? #202

Description

@Quafadas

Could it make sense, to allow allowing the generated code to have the "inline" modifier on some of the variables?

i.e. allow generating;

case object BuildInfo {
  inline val scalaVersion: String = "2.10.3"
} 

With the downstream usecase being scala 3's https://docs.scala-lang.org/scala3/guides/macros/inline.html#inline-matches?

Disclaimer : I have not thought this through carefully - although I assume "compile" comes after the stage this is run, so it could be possible?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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