aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t1711
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t1711')
-rw-r--r--tests/untried/pos/t1711/Seq.scala12
-rw-r--r--tests/untried/pos/t1711/Test.java6
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/untried/pos/t1711/Seq.scala b/tests/untried/pos/t1711/Seq.scala
new file mode 100644
index 000000000..c18f05cd7
--- /dev/null
+++ b/tests/untried/pos/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/tests/untried/pos/t1711/Test.java b/tests/untried/pos/t1711/Test.java
new file mode 100644
index 000000000..5ec0f2297
--- /dev/null
+++ b/tests/untried/pos/t1711/Test.java
@@ -0,0 +1,6 @@
+import com.Sequence;
+
+public class Test {
+ void foo() {
+ }
+}