summaryrefslogtreecommitdiff
path: root/test/pending/pos/bug563.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/pos/bug563.scala')
-rw-r--r--test/pending/pos/bug563.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/pending/pos/bug563.scala b/test/pending/pos/bug563.scala
new file mode 100644
index 0000000000..d559226bdb
--- /dev/null
+++ b/test/pending/pos/bug563.scala
@@ -0,0 +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 =
+ for (val n <- sn)
+ map(n,ptr => new Cell(ptr.elem));
+}