SI-7568 Adding Serializable to ResizableArrayAccess inner class of PriorityQueue
SI-7747 Support class based wrappers as alternative through switch -Yrepl-class-based

Refactoring to reduce the number of if-else

Fix test.
SI-7747 Support class based wrappers clean up

Simplified the code paths to just use one of two `Wrapper` types
for textual templating.

Simplified the class-based template to use the same `$iw` name
for the both the class and the wrapper value.  In addition,
the $read value is an object extending $read, instead of containing
an extra instance field, which keeps paths to values the same
for both templates.

Both styles trigger loading the value object by referencing the
value that immediately wraps the user code, although for the
class style, inner vals are eager and it would suffice to load
the enclosing `$read` object.

The proposed template included extra vals for values imported
from history, but this is not necessary since such an import
is always a stable path. (Or, counter-example to test is welcome.)

The test for t5148 is updated as a side effect. Probably internal
APIs don't make good test subjects.

Modify -Y option message.
SI-7568 Adding PriorityQueueTest
Filter dependencies from partest and scalacheck.

I previously messed this up in a24e7fa, which caused
partest classpath again to include multiple version
of scala-library and friends.

We should really automate enforcing uniqueness of packages.
Make parameters to implicit value classes private

So that they aren't offered as an autocomplete suggestion:

    implicit class Shouty(string: String) extends AnyVal {
      def SHOUT_! = string.toUpperCase + "!"
    }
    "". // autocompletion offers `.string` here

The original incarnation of value classes didn't allow this
sort of encapsulation, so we either invented goofy names like
`__thingToAdd` or just picked `x` or `self`. But SI-7859 has
delivered us the freedom to keep the accessor private.

Should we keep any of these accessors around in a deprecated
form?

The implicit classes in Predef were added in 2.11.0-M2
(c26a8db067e4f), so they are okay.

I think we can make reason that these APIs were both accidental
and unlikely to be interpreted as public, so we can break them
immediately.

    scala> Left(1).x
    res0: scala.util.Either[Int,Int] = Left(1)

    scala> import concurrent.duration._
    import concurrent.duration._

    scala> 1.n
    res1: Int = 1
SI-7958 Deprecate methods `future` and `promise` in the `scala.concurrent` package object

- The corresponding `apply` methods in the `Future` and `Promise` objects
  should be used instead.

- Adjusted tests to use non-deprecated versions

- Fixed doc comments not to use deprecated methods

- Added comment about planned removal in 2.13.0
Merge pull request #3111 from phaller/issue/7958

SI-7958 Deprecate methods `future` and `promise` in the `scala.concurren...
Merge pull request #3121 from rjfwhite/SI-7568

SI-7568 Adding Serializable to ResizableArrayAccess inner class
Merge pull request #3113 from adriaanm/pr-rebase-3046

Make parameters to implicit value classes private
Merge pull request #3123 from som-snytt/issue/7747-scrapcodes-fix

SI-7747 Support class based wrappers in REPL
SI-7915 Corrected range positions created during default args expansion

The tree created during expansion of default arguments contained trees with
the wrong type of positions. In particular:

* The synthetic $qual should have a transparent position.
* The created Select should always have a range position, because `selected`
  (i.e., the called method) is always visible in the source.
* The Block that contains the expanded default arguments is transparent.

The only tricky part of the fix is the position assigned to the new Select tree,
which needs to respect the range position invariants. In the specific case, we
ought to make sure that range positions don't overlap. Therefore, the position
assigned to the new Select tree is computed by intersecting the original Select
position (i.e., `baseFun`'s position) and the original qualifier's position
(i.e., `qual`'s position).