summaryrefslogtreecommitdiff
path: root/test/files/neg/bug563.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug563.scala')
-rw-r--r--test/files/neg/bug563.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/bug563.scala b/test/files/neg/bug563.scala
index 624b83b1fa..204ad3cbdd 100644
--- a/test/files/neg/bug563.scala
+++ b/test/files/neg/bug563.scala
@@ -1,7 +1,7 @@
object Test {
def map[A,R](a : List[A], f : A => R) : List[R] = a.map(f);
- def split(sn : Iterable[List[Cell[Int]]]) : Unit =
+ def split(sn : Iterable[List[Option[Int]]]) : Unit =
for (n <- sn)
- map(n,ptr => new Cell(ptr.elem));
+ map(n,ptr => Option(ptr.get));
}