diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-02-17 16:16:03 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-02-17 16:16:03 +0000 |
commit | 0ee11c38762844fa78bf2fd0861680c4b6ac2e8e (patch) | |
tree | dbad60ed95418bf762b4f4b6f3c111b1625fcf08 /test/files/pos5/t1711 | |
parent | 855ec6101a4e0eead00a2c20a1745819372d18dd (diff) | |
download | scala-0ee11c38762844fa78bf2fd0861680c4b6ac2e8e.tar.gz scala-0ee11c38762844fa78bf2fd0861680c4b6ac2e8e.tar.bz2 scala-0ee11c38762844fa78bf2fd0861680c4b6ac2e8e.zip |
Test for #1711
Diffstat (limited to 'test/files/pos5/t1711')
-rw-r--r-- | test/files/pos5/t1711/Seq.scala | 12 | ||||
-rw-r--r-- | test/files/pos5/t1711/Test.java | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos5/t1711/Seq.scala b/test/files/pos5/t1711/Seq.scala new file mode 100644 index 0000000000..c18f05cd73 --- /dev/null +++ b/test/files/pos5/t1711/Seq.scala @@ -0,0 +1,12 @@ +package com + +object Sequence { + + def filteringFunction[V](filter: V => Boolean): List[V] => List[V] = { + def include(v: V) = + filter(v) + (l: List[V]) => l.filter(include) + } + +} + diff --git a/test/files/pos5/t1711/Test.java b/test/files/pos5/t1711/Test.java new file mode 100644 index 0000000000..5ec0f2297c --- /dev/null +++ b/test/files/pos5/t1711/Test.java @@ -0,0 +1,6 @@ +import com.Sequence; + +public class Test { + void foo() { + } +} |