Skip to content

2.13.5 reports false positive unused evidence for some implicits #12355

@arixmkii

Description

@arixmkii

reproduction steps

Example in scastie - compilation will fail (because fatal warnings are on)
https://scastie.scala-lang.org/xzO1YZ7yR5OSmE1uyMzrrw

using Scala 2.13.5,

import pureconfig.ConfigReader
import pureconfig.generic.semiauto._

final case class SomeConfig[C](optVal: Option[C])

implicit def configReader[C : ConfigReader] = deriveReader[SomeConfig[C]] // this will fail to compile

problem

The code compiled just fine with 2.13.4 and it is impossible to compile this with fatal warnings enabled w/o adding @nowarn annotation, what in turn causes issues for 2.12 series cross-compilation, because it reports warning that the annotation suppresses nothing.

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