aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t4757
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t4757')
-rw-r--r--tests/untried/pos/t4757/A_2.scala4
-rw-r--r--tests/untried/pos/t4757/B_3.scala3
-rw-r--r--tests/untried/pos/t4757/P_1.scala6
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/pos/t4757/A_2.scala b/tests/untried/pos/t4757/A_2.scala
new file mode 100644
index 000000000..63106a617
--- /dev/null
+++ b/tests/untried/pos/t4757/A_2.scala
@@ -0,0 +1,4 @@
+object A {
+ def ss = P.x(3)(Nil)
+}
+
diff --git a/tests/untried/pos/t4757/B_3.scala b/tests/untried/pos/t4757/B_3.scala
new file mode 100644
index 000000000..b50d1cd83
--- /dev/null
+++ b/tests/untried/pos/t4757/B_3.scala
@@ -0,0 +1,3 @@
+object C {
+ def x: Seq[S[_]] = A.ss
+}
diff --git a/tests/untried/pos/t4757/P_1.scala b/tests/untried/pos/t4757/P_1.scala
new file mode 100644
index 000000000..8f01a4b66
--- /dev/null
+++ b/tests/untried/pos/t4757/P_1.scala
@@ -0,0 +1,6 @@
+trait S[T]
+
+object P {
+ def x(t: Int)(ss: Seq[S[_]]): Seq[S[_]] = ss
+}
+