diff options
author | Martin Odersky <odersky@gmail.com> | 2006-04-04 12:18:15 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-04-04 12:18:15 +0000 |
commit | ac8b46abda17de619beb2b27dfe9d820c5e189cf (patch) | |
tree | b908b07eb95280352dea767dd0fd8ac9890d8472 /test/pending/pos | |
parent | 486042e89abaa69b82f2d602d342f7b032ce7047 (diff) | |
download | scala-ac8b46abda17de619beb2b27dfe9d820c5e189cf.tar.gz scala-ac8b46abda17de619beb2b27dfe9d820c5e189cf.tar.bz2 scala-ac8b46abda17de619beb2b27dfe9d820c5e189cf.zip |
Diffstat (limited to 'test/pending/pos')
-rw-r--r-- | test/pending/pos/bug563.scala | 7 |
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)); +} |