aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t5158.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t5158.scala')
-rw-r--r--tests/pending/run/t5158.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pending/run/t5158.scala b/tests/pending/run/t5158.scala
index 3028ffa9e..34c02c306 100644
--- a/tests/pending/run/t5158.scala
+++ b/tests/pending/run/t5158.scala
@@ -1,11 +1,11 @@
case class B(var x: Int) {
- def succ() {
+ def succ(): Unit = {
x = x + 1
}
}
object Test {
- def main(args: Array[String]) {
+ def main(args: Array[String]): Unit = {
val b = B(0)
b match {
case B(x) =>
@@ -14,4 +14,4 @@ object Test {
println(x)
}
}
-} \ No newline at end of file
+}