aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/spec-arrays.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/spec-arrays.scala')
-rw-r--r--tests/untried/pos/spec-arrays.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/untried/pos/spec-arrays.scala b/tests/untried/pos/spec-arrays.scala
index 8c039764f..10daaba18 100644
--- a/tests/untried/pos/spec-arrays.scala
+++ b/tests/untried/pos/spec-arrays.scala
@@ -1,6 +1,6 @@
abstract class AbsArray[T] {
def apply(idx: Int): T
- def update(idx: Int, elem: T)
+ def update(idx: Int, elem: T): Unit
def length: Int
def applyByte(idx: Int): Byte = apply(idx).asInstanceOf[Byte]
def updateByte(idx: Int, elem: Byte) = update(idx, elem.asInstanceOf[T])
@@ -44,7 +44,7 @@ class SpecArray[@specialized T](arr: Array[T]) extends AbsArray[T] {
abstract class Test {
def sum(): Int
- def modify(i: Int)
+ def modify(i: Int): Unit
def run(): Unit = {
var s = 0
for (i <- 1 to 1000000) {