Skip to content

For discussion: @inline annotation? #202

@Quafadas

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?

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