Skip to content

Magnolia interface unification for Scala 2 and Scala 3 versionsΒ #458

@YaroslavSagach

Description

@YaroslavSagach

In a process of migrating the project to Scala 3, I created a cross build. In which, I separated code with magnolia, that differs. So the Scala 2. code uses 1.1.3 version, and Scala 3 uses 1.2.6. Also, there is common code, which I want to keep for both versions. But, I've stumbled upon a problem, that those 2 versions of magnolia have different interfaces. In particular, I have a problem with CaseClass 'params'. In 1.1.3 it's "parameters", but in 1.2.6 it's "params" :

val params: IArray[CaseClass.Param[Typeclass, Type]],

override def parameters: Seq[Param[Typeclass, Type]] = parametersArray

So, is there any way to unify these interfaces, for such use cases like mine?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions