Skip to content

trait val with symbolic name is lost #13252

Closed
@edolgy

Description

@edolgy

Compiler version

3.0.2-RC1

Minimized code

object Test:

  class Star

  trait Foo:
    @annotation.targetName("star") val * : Star = new Star

  object Bar extends Foo

  def main(sa: Array[String]): Unit =
    Bar.*

Output

[error] java.lang.AbstractMethodError: test.Test$Bar$.star()Ltest/Test$Star;
[error]         at test.Test$.main(Test.scala:14)
[error]         at test.Test.main(Test.scala)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions