From 05cd9ee2b402f91abb1fd8af70ebab102ab4e313 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sat, 22 Sep 2012 14:10:24 +0200 Subject: 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). --- test/files/run/Meter.scala | 5 +++++ test/files/run/MeterCaseClass.scala | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'test/files') 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) -- cgit v1.2.3