We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc7aa7 commit 081de87Copy full SHA for 081de87
test/files/pos/t11558.scala
@@ -3,3 +3,11 @@ class Test {
3
trait S[T] { def map[R](f: F1[_ >: T, _ <: R]): S[R] }
4
(??? : S[Int]).map(_.toString) // check that map's type param is inferred (should be String)
5
}
6
+
7
+object Test_9244 {
8
+ trait F1[T1, R] { def apply(a1: T1): R }
9
10
+ def cycle[T](function: F1[? >: T, ? <: T]): Unit = ???
11
12
+ def t9244 = cycle((_: String) => "")
13
+}
0 commit comments