From ac8b46abda17de619beb2b27dfe9d820c5e189cf Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 4 Apr 2006 12:18:15 +0000 Subject: --- test/pending/pos/bug563.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/pending/pos/bug563.scala (limited to 'test/pending/pos') 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)); +} -- cgit v1.2.3