summaryrefslogtreecommitdiff
path: root/test/files/run/MeterCaseClass.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-14 14:43:32 -0700
committerPaul Phillips <paulp@improving.org>2012-03-14 15:18:11 -0700
commitc58b6a8716d70d32264d436b8224d0b33ad0d5a7 (patch)
treedc33f83e3f98871694f55c14be35cd3b41fab13f /test/files/run/MeterCaseClass.scala
parent3fd4b1ee397ab649f606312a2b793d7faac61bcd (diff)
downloadscala-c58b6a8716d70d32264d436b8224d0b33ad0d5a7.tar.gz
scala-c58b6a8716d70d32264d436b8224d0b33ad0d5a7.tar.bz2
scala-c58b6a8716d70d32264d436b8224d0b33ad0d5a7.zip
Whitespace and a couple checkfile updates.
Diffstat (limited to 'test/files/run/MeterCaseClass.scala')
-rw-r--r--test/files/run/MeterCaseClass.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/run/MeterCaseClass.scala b/test/files/run/MeterCaseClass.scala
index 4f082b5252..8459163f31 100644
--- a/test/files/run/MeterCaseClass.scala
+++ b/test/files/run/MeterCaseClass.scala
@@ -1,6 +1,6 @@
package a {
case class Meter(underlying: Double) extends AnyVal with _root_.b.Printable {
- def + (other: Meter): Meter =
+ def + (other: Meter): Meter =
new Meter(this.underlying + other.underlying)
def / (other: Meter): Double = this.underlying / other.underlying
def / (factor: Double): Meter = new Meter(this.underlying / factor)
@@ -10,7 +10,7 @@ package a {
}
object Meter extends (Double => Meter) {
-
+
implicit val boxings = new BoxingConversions[Meter, Double] {
def box(x: Double) = new Meter(x)
def unbox(m: Meter) = m.underlying
@@ -18,7 +18,7 @@ package a {
}
class Foot(val unbox: Double) extends AnyVal {
- def + (other: Foot): Foot =
+ def + (other: Foot): Foot =
new Foot(this.unbox + other.unbox)
override def toString = unbox.toString+"ft"
}
@@ -31,8 +31,8 @@ package a {
}
package b {
- trait Printable extends Any {
- def print: Unit = Console.print(this)
+ trait Printable extends Any {
+ def print: Unit = Console.print(this)
protected def proprint = Console.print("<<<")
}
}
@@ -62,7 +62,7 @@ object Test extends App {
println("x == 1: "+(x == 1))
println("x == y: "+(x == y))
assert(x.hashCode == (1.0).hashCode)
-
+
val a: Any = x
val b: Any = y
println("a == b: "+(a == b))