Closed
Description
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
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.