diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-09-22 14:10:24 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-09-22 14:10:24 +0200 |
commit | 05cd9ee2b402f91abb1fd8af70ebab102ab4e313 (patch) | |
tree | 81a4287646c4a20d514d27eefe6e66a63d18aea6 /test/files/run | |
parent | c8e6f8e64c4d9967cee41486cc2e324da0262976 (diff) | |
download | scala-05cd9ee2b402f91abb1fd8af70ebab102ab4e313.tar.gz scala-05cd9ee2b402f91abb1fd8af70ebab102ab4e313.tar.bz2 scala-05cd9ee2b402f91abb1fd8af70ebab102ab4e313.zip |
Remove BoxingConversions from the scala package.
And add it to two test cases that rely on it.
It is a remnant of the now-removed FlatArray (8cc7de74d).
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/Meter.scala | 5 | ||||
-rw-r--r-- | test/files/run/MeterCaseClass.scala | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/Meter.scala b/test/files/run/Meter.scala index a0c04cc2a7..a10ad31b4a 100644 --- a/test/files/run/Meter.scala +++ b/test/files/run/Meter.scala @@ -1,4 +1,9 @@ package a { + abstract class BoxingConversions[Boxed, Unboxed] { + def box(x: Unboxed): Boxed + def unbox(x: Boxed): Unboxed + } + class Meter(val underlying: Double) extends AnyVal with _root_.b.Printable { def + (other: Meter): Meter = new Meter(this.underlying + other.underlying) diff --git a/test/files/run/MeterCaseClass.scala b/test/files/run/MeterCaseClass.scala index 18f8e23f89..39d95c2af5 100644 --- a/test/files/run/MeterCaseClass.scala +++ b/test/files/run/MeterCaseClass.scala @@ -1,4 +1,9 @@ package a { + abstract class BoxingConversions[Boxed, Unboxed] { + def box(x: Unboxed): Boxed + def unbox(x: Boxed): Unboxed + } + case class Meter(underlying: Double) extends AnyVal with _root_.b.Printable { def + (other: Meter): Meter = new Meter(this.underlying + other.underlying) |