scalatest / scalatest

A testing tool for Scala and Java developers
Apache License 2.0
1.15k stars 333 forks source link

Scaladoc examples for `NoArg` #351

Open jraman opened 10 years ago

jraman commented 10 years ago

In the scaladoc for NoArg:

It would be good to add an implementation for MyActor to make the example more complete.

mkurz commented 1 year ago

@cheeseng @bvenners I guess NoArg does not work anymore when using Scala 3 because it depends on DelayedInit whose "...special handling ... is no longer supported..."? See https://docs.scala-lang.org/scala3/reference/dropped-features/delayed-init.html

cheeseng commented 1 year ago

@mkurz Yes you're right, NoArg will not work in Scala 3, I submitted the following PR to update NoArg about this:

https://github.com/scalatest/scalatest/pull/2228

Thanks for pointing it out!