Skip to content

Commit 081de87

Browse files
author
Som Snytt
committed
Augment regression test
1 parent cfc7aa7 commit 081de87

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/files/pos/t11558.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ class Test {
33
trait S[T] { def map[R](f: F1[_ >: T, _ <: R]): S[R] }
44
(??? : S[Int]).map(_.toString) // check that map's type param is inferred (should be String)
55
}
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

Comments
 (0)