Skip to content

Constructor not generated on 3.3.1 #19569

Closed
@He-Pin

Description

@He-Pin

Compiler version

3.3.1
In pekko /Akka project

Minimized code

Sbt docs
+3.3.1
TestOnly ※ActorDocSpec※

I edited this on phone , sorry

"Xxxxx test " in {

new AnyRef {

  Class WatchActor extends Actor {
     ....
   }

  val ref = system.actorOf(Props(classOf[WatchActor], this))

}

}

Output

apache/pekko#1082

Expectation

Works as scala 2.12 and 2.13

The WatchActor is in a none static scope, so the first argument of it's constructor should be the type of the outter scope, but there is no matched constructors, seems just ignored the outter scope.

See Class.getDeclaredConstructors for more details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions