diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-20 10:23:54 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-01-20 10:24:01 +0100 |
commit | bbce22137fb83b33773b198bf4aaba9417596179 (patch) | |
tree | 69d2206f5dbc62d6fa0261abe8d88d2b9de528ce /tests/pos/i1036.scala | |
parent | 1aa8fbb56e95d7aea04b338d3edf7d53077b804a (diff) | |
download | dotty-bbce22137fb83b33773b198bf4aaba9417596179.tar.gz dotty-bbce22137fb83b33773b198bf4aaba9417596179.tar.bz2 dotty-bbce22137fb83b33773b198bf4aaba9417596179.zip |
Fix #1036
Achieved by tweaking from where we get the parameter types of an eta-expansion.
Diffstat (limited to 'tests/pos/i1036.scala')
-rw-r--r-- | tests/pos/i1036.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pos/i1036.scala b/tests/pos/i1036.scala new file mode 100644 index 000000000..6110f9681 --- /dev/null +++ b/tests/pos/i1036.scala @@ -0,0 +1,12 @@ +object Test { + def second[sA, sB <: sA](foo: sA, bar: sB): sB = bar + def third[A, B >: A](foo: A, bar: B): B = bar + def expectString(s: String) = s + + def test = { + val x = second(Set.empty[String], Set.empty) + x map expectString + second(Set.empty[String], Set.empty) map expectString + third(Set.empty[String], Set.empty) map expectString + } +} |