aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t7859/B_2.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 12:08:27 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-13 12:08:27 +0200
commit73a93505c432b410ae39fb3c4d6168b2e49832ce (patch)
tree53d45141a7b93682bea6430b0fb6ab28c3c3fad3 /tests/pending/run/t7859/B_2.scala
parent89bacb9c25a58454ff1878e67f7ea07ffc8c269f (diff)
downloaddotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.tar.gz
dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.tar.bz2
dotty-73a93505c432b410ae39fb3c4d6168b2e49832ce.zip
Running rewrite tool on run tests.
Diffstat (limited to 'tests/pending/run/t7859/B_2.scala')
-rw-r--r--tests/pending/run/t7859/B_2.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/pending/run/t7859/B_2.scala b/tests/pending/run/t7859/B_2.scala
index 6b23af3ab..052322ef6 100644
--- a/tests/pending/run/t7859/B_2.scala
+++ b/tests/pending/run/t7859/B_2.scala
@@ -9,28 +9,28 @@ object B {
//
// See also SI-6601.
object Test {
- def main(args: Array[String]) {
+ def main(args: Array[String]): Unit = {
unboxA
unboxA1
unboxA2
unboxB
}
- def unboxA {
+ def unboxA: Unit = {
val o: Some[A] = Some(A.Const)
val a = o.get
def id(a: A): A = a
id(a)
}
- def unboxA1 {
+ def unboxA1: Unit = {
val o: Some[A1] = Some(new A1(0))
val a = o.get
def id(a: A1): A1 = a
id(a)
}
- def unboxA2 {
+ def unboxA2: Unit = {
import p.A2
val o: Some[A2] = Some(new A2(0))
val a = o.get
@@ -38,7 +38,7 @@ object Test {
id(a)
}
- def unboxB {
+ def unboxB: Unit = {
val o: Some[B] = Some(B.Const)
val b = o.get
def id(b: B): B = b