Skip to content

Scala2 / 3 handles type argument differently #12953

Closed
@exoego

Description

@exoego

Compiler version

3.0.1.RC-2

Minimized code

class Schema(impl: Class[_]) extends scala.annotation.StaticAnnotation

case class Foo[A](@Schema(classOf[List[A]]) foo: String)

Output

[error] 31 |    case class Foo[A](@Schema(classOf[List[A]]) foo: String)
[error]    |                                           ^
[error]    |                              Not found: type A

Expectation

It should compile, since it does on Scala 2.13.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions