I want to test my code against the latest bleeding edge Scala 2 or Scala 3 nightly.
(Or, I want to use an experimental Scala 3 feature, which are only available in nightly builds.)
What do I do?
There is now (2024) an official documentation page covering this:
Full details are there, but a short answer is that the easiest way is with scala-cli -S 3.nightly
(or 3.3.nightly
for LTS, or 2.nightly
for 2.13, or 2.12.nightly
for 2.12).
If you aren't using scala-cli, it's not too much harder; see instructions on doc page.