Skip to content

Given conversion loosing type, when inlined #8276

Closed
@edolgy

Description

@edolgy

The code does not compile, but would compile if 'inline' is removed.

Introduced in 0.22, was fine in 0.21

object NOTHING

inline given [A]: Conversion[NOTHING.type, Option[A]] = _ => None

def apply[A](p: Vector[A], o: Option[A] = NOTHING): Unit = ???

apply[String](Vector.empty)
[error]  Found: Option[Any],  Required: Option[String]

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