Skip to content

Commit 979e572

Browse files
committed
Add to test
Add second scenario reported in #1037 to test case.
1 parent fe12f46 commit 979e572

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/pos/i1036.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
object Test {
22
def second[sA, sB <: sA](foo: sA, bar: sB): sB = bar
3+
def third[A, B >: A](foo: A, bar: B): B = bar
34
def expectString(s: String) = s
45

56
def test = {
67
val x = second(Set.empty[String], Set.empty)
78
x map expectString
89
second(Set.empty[String], Set.empty) map expectString
10+
third(Set.empty[String], Set.empty) map expectString
911
}
1012
}

0 commit comments

Comments
 (0)