diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-13 12:08:27 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-13 12:08:27 +0200 |
commit | 73a93505c432b410ae39fb3c4d6168b2e49832ce (patch) | |
tree | 53d45141a7b93682bea6430b0fb6ab28c3c3fad3 /tests/pending/run/MeterCaseClass.scala | |
parent | 89bacb9c25a58454ff1878e67f7ea07ffc8c269f (diff) | |
download | dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.tar.gz dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.tar.bz2 dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.zip |
Running rewrite tool on run tests.
Diffstat (limited to 'tests/pending/run/MeterCaseClass.scala')
-rw-r--r-- | tests/pending/run/MeterCaseClass.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pending/run/MeterCaseClass.scala b/tests/pending/run/MeterCaseClass.scala index 39d95c2af..9b32fc24e 100644 --- a/tests/pending/run/MeterCaseClass.scala +++ b/tests/pending/run/MeterCaseClass.scala @@ -18,7 +18,7 @@ package a { private[a] trait MeterArg - implicit val boxings = new BoxingConversions[Meter, Double] { + implicit val boxings: a.BoxingConversions[a.Meter,Double] = new BoxingConversions[Meter, Double] { def box(x: Double) = new Meter(x) def unbox(m: Meter) = m.underlying } @@ -30,7 +30,7 @@ package a { override def toString = unbox.toString+"ft" } object Foot { - implicit val boxings = new BoxingConversions[Foot, Double] { + implicit val boxings: a.BoxingConversions[a.Foot,Double] = new BoxingConversions[Foot, Double] { def box(x: Double) = new Foot(x) def unbox(m: Foot) = m.unbox } @@ -77,7 +77,7 @@ object Test extends App { { println("testing native arrays") val arr = Array(x, y + x) println(arr.deep) - def foo[T <: Printable](x: Array[T]) { + def foo[T <: Printable](x: Array[T]): Unit = { for (i <- 0 until x.length) { x(i).print; println(" "+x(i)) } } val m = arr(0) |