Skip to content

AnyVal case class of type alias fails with clashing generated bridge for apply #12131

Open
@rikvdkleij-cleverbase

Description

@rikvdkleij-cleverbase

I see all kind of issues which have similar compilation errors but not for this case.

reproduction steps

using Scala (Scala 2.13.3),

    final case class Foo(bar: NonEmptySet[String]) extends AnyVal 

problem

bridge generated for member method apply: (bar: cats.data.NonEmptySetImpl.Type[String]): Foo in object Foo
which overrides method apply: (v1: T1): R in trait Function1
clashes with definition of the member itself;
both have erased type (v1: Object): Object
    final case class Foo(bar: NonEmptySet[String]) extends AnyVal

Expecting no compile error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions