Skip to content

Constructor annotations don't allow multiple argument lists #6808

Open
@scabug

Description

@scabug
scala> class ann1(x: Int) extends scala.annotation.StaticAnnotation
defined class ann1

scala> class C @ann1(2) ()
defined class C

scala> class ann2(x: Int)(y: Int) extends scala.annotation.StaticAnnotation
defined class ann2

scala> class C @ann2(2)(3) ()
<console>:1: error: identifier expected but integer literal found.
       class C @ann2(2)(3) ()
                        ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    annotationsenhancementfixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions