diff options
Diffstat (limited to 'test/files/neg/bug563.scala')
-rw-r--r-- | test/files/neg/bug563.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/bug563.scala b/test/files/neg/bug563.scala new file mode 100644 index 0000000000..d559226bdb --- /dev/null +++ b/test/files/neg/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)); +} |